fix try/catch bug (bad err reference)
This commit is contained in:
parent
b66b6e31f9
commit
705671a96a
|
@ -83,7 +83,7 @@ function getAppContext(domaininfo) {
|
||||||
// TODO pass in websocket
|
// TODO pass in websocket
|
||||||
localApp = localApp.create(/*config*/);
|
localApp = localApp.create(/*config*/);
|
||||||
if (!localApp) {
|
if (!localApp) {
|
||||||
return getDummyAppContext(err, "[ERROR] no app was returned by app.js for " + domaininfo.driname);
|
return getDummyAppContext(null, "[ERROR] no app was returned by app.js for " + domaininfo.driname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!localApp.then) {
|
if (!localApp.then) {
|
||||||
|
@ -94,7 +94,7 @@ function getAppContext(domaininfo) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
localApp = getDummyAppContext(err, "[ERROR] could not load app.js for " + domaininfo.dirname);
|
localApp = getDummyAppContext(e, "[ERROR] could not load app.js for " + domaininfo.dirname);
|
||||||
localApp = PromiseA.resolve(localApp);
|
localApp = PromiseA.resolve(localApp);
|
||||||
|
|
||||||
return localApp;
|
return localApp;
|
||||||
|
|
Loading…
Reference in New Issue