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:
@ -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 = "";
|
||||
|
Reference in New Issue
Block a user