split cam tools out of init
This commit is contained in:
parent
f05bcbce4e
commit
606dea94e5
7 changed files with 335 additions and 310 deletions
|
|
@ -77,7 +77,11 @@ function safeFN(fn, name) {
|
|||
try {
|
||||
return fn(...arguments);
|
||||
} catch (error) {
|
||||
console.log({ register_fail: name, error });
|
||||
if (error.stack) {
|
||||
console.log(`[${name}]`, error.stack);
|
||||
} else {
|
||||
console.log({ register_fail: name, error });
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue