MCPcopy Create free account
hub / github.com/Semporia/Scripts / logErr

Method logErr

jd_try.js:1050–1057  ·  view source on GitHub ↗
(err, msg)

Source from the content-addressed store, hash-verified

1048 }
1049
1050 logErr(err, msg) {
1051 const isPrintSack = !this.isSurge() && !this.isQuanX() && !this.isLoon()
1052 if (!isPrintSack) {
1053 this.log('', `❗️${this.name}, 错误!`, err)
1054 } else {
1055 this.log('', `❗️${this.name}, 错误!`, err.stack)
1056 }
1057 }
1058
1059 wait(time) {
1060 return new Promise((resolve) => setTimeout(resolve, time))

Callers 3

totalBeanFunction · 0.45
runScriptMethod · 0.45
getMethod · 0.45

Calls 4

isSurgeMethod · 0.45
isQuanXMethod · 0.45
isLoonMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected