MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / logErr

Method logErr

env/env.js:446–459  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

444 t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator))
445 }
446 logErr(t, e) {
447 switch (this.getEnv()) {
448 case 'Surge':
449 case 'Loon':
450 case 'Stash':
451 case 'Shadowrocket':
452 case 'Quantumult X':
453 default:
454 this.log('', `❗️${this.name}, 错误!`, t)
455 break
456 case 'Node.js':
457 this.log('', `❗️${this.name}, 错误!`, t.stack)
458 }
459 }
460 wait(t) {
461 return new Promise(e => setTimeout(e, t))
462 }

Callers 2

runScriptMethod · 0.45
getMethod · 0.45

Calls 2

getEnvMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected