GUI_Error_HIG("Spidermonkey ECMAScript Error", "file: %s: line %d:\n Msg:%s\n", report->filename, report->lineno, message);
if( fd ){ fread(buf,1,4,fd); fclose(fd); } if( strncmp(buf," GUI_Error_HIG("Spidermonkey ECMAScript Error", "Not an ECMAScript file. Try open it with 'File' -> 'Open...'"); }else{ GUI_Error_HIG("Spidermonkey ECMAScript Error", "file: %s: line %d:\n Msg:%s\n", report->filename, report->lineno, message); }
printJSError(JSContext *cx, const char *message, JSErrorReport *report){// begin printJSErrorint quiet=isQuiet();        if(quiet)                GUI_Verbose();         GUI_Error_HIG("Spidermonkey ECMAScript Error", 	"file: %s: line %d:\n Msg:%s\n",		report->filename,		report->lineno,		message);        if(quiet)                GUI_Quiet();}// end printJSError