1
0
mirror of https://git.hibas.dev/OpenServer/NodeLogging.git synced 2025-07-01 12:41:11 +00:00

Adding theoretical stack to string errors

This commit is contained in:
Fabian Stamm
2018-05-11 08:05:55 +02:00
parent 11bc947205
commit 932eeacb86
5 changed files with 6 additions and 5 deletions

View File

@ -70,7 +70,8 @@ export class Logging {
static error(error: Error | string) {
if (typeof error === "string") {
Logging.errorMessage(error);
let e = new Error()
Logging.errorMessage(error + e.stack);
return;
}
// let m = "";