MCPcopy Create free account
hub / github.com/ClydeTime/Surge / logErr

Method logErr

Script/Env.js:547–559  ·  view source on GitHub ↗
(err, msg)

Source from the content-addressed store, hash-verified

545 }
546
547 logErr(err, msg) {
548 switch (this.platform()) {
549 case 'Surge':
550 case 'Loon':
551 case 'Stash':
552 case 'Egern':
553 case 'Shadowrocket':
554 case 'Quantumult X':
555 default:
556 this.log('', `❗️${this.name}, 错误!`, err, msg)
557 break
558 }
559 }
560
561 wait(time) {
562 return new Promise((resolve) => setTimeout(resolve, time))

Callers

nothing calls this directly

Calls 2

platformMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected