wip fix
This commit is contained in:
parent
552aec1773
commit
987ecdedcd
File diff suppressed because one or more lines are too long
|
|
@ -54,6 +54,7 @@ export const server = createServer({
|
||||||
bundle: true,
|
bundle: true,
|
||||||
outfile: build_file,
|
outfile: build_file,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
platform: "node",
|
||||||
treeShaking: true,
|
treeShaking: true,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
logLevel: "silent",
|
logLevel: "silent",
|
||||||
|
|
@ -101,7 +102,10 @@ if (typeof global.server_hook === "function") {
|
||||||
ancestors.push(val);
|
ancestors.push(val);
|
||||||
|
|
||||||
if (val.constructor && val.constructor.name !== "Object"){
|
if (val.constructor && val.constructor.name !== "Object"){
|
||||||
return '[class] ' + val.constructor.name;
|
if (val.constructor.name === 'Error') {
|
||||||
|
return '[Error] ' + val.message;
|
||||||
|
}
|
||||||
|
return '[Class] ' + val.constructor.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue