MCPcopy
hub / github.com/desktop/desktop / handleError

Function handleError

script/validate-macos-version.ts:28–36  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

26const errorOnMismatch = (process.env.RELEASE_CHANNEL ?? '').length > 0
27
28function handleError(message: string): never {
29 if (errorOnMismatch) {
30 console.error(message)
31 process.exit(1)
32 } else {
33 console.warn(message)
34 process.exit(0)
35 }
36}
37
38const channel =
39 process.env.RELEASE_CHANNEL || distInfo.getChannelFromReleaseBranch()

Callers 1

validateMacOSVersionFunction · 0.70

Calls 2

errorMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected