add uncaught exception handling

This commit is contained in:
Stewart Allen 2020-03-23 01:46:05 -04:00
commit 8c670a92b5
2 changed files with 10 additions and 0 deletions

View file

@ -1337,4 +1337,13 @@ process.on('SIGHUP', function(sig, code) {
processExit(code);
});
process.on('unhandledRejection', (reason, p) => {
logger.log({unhandled_rejection: reason, promise: p});
});
process.on('uncaughtException', (err) => {
logger.log({uncaught_exception: err});
// process.exit(1);
});
processLoad();

View file

@ -40,6 +40,7 @@
# CAM
* `P` background worker to speculatively generate topo maps (and maybe pre-slicing)
* `B` fails in pancaking (clone) when there are no sliced layers (like z bottom too high)
* `B` linear finishing should extend beyond part boundaries by tool radius
* `B` outside cutting direction in roughing mode inverted