Skip to content
Snippets Groups Projects
Commit 20792bf3 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

better (shorter) error messages

Rev: lib/master.pike:1.33
parent e319bb1e
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,15 @@ static program low_findprog(string pname, string ext)
{
case "":
case ".pike":
ret=compile_file(fname);
if ( mixed e=catch { ret=compile_file(fname); } )
{
if(arrayp(e) &&
sizeof(e)==2 &&
arrayp(e[1]) &&
sizeof(e[1]) == sizeof(backtrace()))
e[1]=({});
throw(e);
}
break;
case ".so":
ret=load_module(fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment