1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

meshuser: log uncaught exceptions to mesherrs

This commit is contained in:
Noah Zalev 2021-07-10 20:14:15 -04:00
parent ff4c67da7c
commit ad6ff11413
2 changed files with 12 additions and 6 deletions

View file

@ -555,7 +555,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
if (commandHandler != null) {
try { commandHandler(command); return;
} catch (e) {
console.log('Unhandled error while processing ' + command.action + ' for user ' + + user.name + ':\n' + e);
console.log('Unhandled error while processing ' + command.action + ' for user ' + user.name + ':\n' + e);
parent.parent.logError(e.stack);
return;
}
} else {
// console.log('Unknown action from user ' + user.name + ': ' + command.action + '.');