serviceModuleLoad error handling never called
killmenot opened this issue · 1 comments
killmenot commented
Hi @robtweed
The catch block in the following example is never called because loadModule
function catch issue inside and returns boolean depends on the results.
Lines 356 to 371 in 71a0457
I think the correct one here is:
- pass information about service load to
loadModule
- move
serviceModuleLoad
error handling insideloadModule function
ok = loadModule.call(this, service, finished);
if (!ok) return;
NOTE:
The code above doesn't pass information about service or application to loadModule
Please provide your thoughts...
killmenot commented
Rob:
That try/catch is needed. If the module has bad syntax or corrupt JS in any way, then it will crash without the try/catch