Bit
09/03/2024, 6:38 PMe.message
and e.stack
work here?erictgrubaugh
09/03/2024, 6:42 PMtry..catch
and the N/log
module should work exactly the same in a Restlet as they do elsewhere.Kevin Hoelzel
09/03/2024, 7:03 PMtry {
} catch (e) {
log.error({
title: 'my error',
details: e
});
}
Bit
09/03/2024, 8:44 PMerictgrubaugh
09/03/2024, 8:45 PMKevin Hoelzel
09/03/2024, 8:48 PMtry {
} catch (e) {
log.error({
title: 'my error',
details: e
});
return e;
}
Kevin Hoelzel
09/03/2024, 8:49 PM