Skip to content
Snippets Groups Projects
Commit 02c7d253 authored by rswindell's avatar rswindell
Browse files

Addition debug output.

parent 5f42ca6c
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,8 @@ JSContext* js_initcx(SOCKET sock, JSObject** glob)
if((js_cx = JS_NewContext(js_runtime, JAVASCRIPT_CONTEXT_STACK))==NULL)
return(NULL);
lprintf("%04d JavaScript: Context created",sock);
JS_BeginRequest(js_cx); /* Required for multi-thread support */
JS_SetErrorReporter(js_cx, js_ErrorReporter);
......
......@@ -1435,6 +1435,10 @@ char attachment(char *bundlename,faddr_t dest,char cleanup)
size_t f;
glob_t g;
if(bundlename==NULL) {
logprintf("ERROR line %d NULL bundlename",__LINE__);
return(1);
}
sprintf(fname,"%sBUNDLES.SBE",cfg.outbound);
if((stream=fnopen(&file,fname,O_RDWR|O_CREAT))==NULL) {
printf("\7ERROR line %d opening %s %s\n",__LINE__,fname,sys_errlist[errno]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment