MCPcopy
hub / github.com/dotenvx/dotenvx / commandExitedWithCode

Method commandExitedWithCode

src/lib/helpers/errors.js:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 commandExitedWithCode () {
65 const code = 'COMMAND_EXITED_WITH_CODE'
66 const message = `[${code}] Command exited with exit code ${this.exitCode}`
67 const help = `fix: [${ISSUE_BY_CODE[code]}]`
68
69 const e = new Error(message)
70 e.code = code
71 e.help = help
72 e.messageWithHelp = `${message}. ${help}`
73 return e
74 }
75
76 commandSubstitutionFailed () {
77 const code = 'COMMAND_SUBSTITUTION_FAILED'

Callers 1

executeCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected