mirror of
https://git.coolaj86.com/coolaj86/telebit-relay.js.git
synced 2025-04-22 03:20:37 +00:00
show meaningful errors
This commit is contained in:
parent
33c3bc9876
commit
e619018276
@ -134,7 +134,7 @@ function applyConfig(config) {
|
|||||||
// TODO specify extensions in config file
|
// TODO specify extensions in config file
|
||||||
state.extensions = require('../lib/extensions');
|
state.extensions = require('../lib/extensions');
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if (state.debug) { console.log('[DEBUG] no extensions loaded', e); }
|
if ('ENOENT' !== e.code || state.debug) { console.log('[DEBUG] no extensions loaded', e); }
|
||||||
state.extensions = {};
|
state.extensions = {};
|
||||||
}
|
}
|
||||||
require('../lib/handlers').create(state); // adds directly to config for now...
|
require('../lib/handlers').create(state); // adds directly to config for now...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user