MCPcopy
hub / github.com/dotenvx/dotenvx / invalidColor

Method invalidColor

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

Source from the content-addressed store, hash-verified

110 }
111
112 invalidColor () {
113 const code = 'INVALID_COLOR'
114 const message = `[${code}] Invalid color ${this.color}`
115 const help = `fix: [${ISSUE_BY_CODE[code]}]`
116
117 const e = new Error(message)
118 e.code = code
119 e.help = help
120 e.messageWithHelp = `${message}. ${help}`
121 return e
122 }
123
124 invalidConvention () {
125 const code = 'INVALID_CONVENTION'

Callers 1

getColorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected