MCPcopy Create free account
hub / github.com/PaperElectron/Sundry / errorPrompt

Function errorPrompt

cli/interactive.js:177–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175}
176
177function errorPrompt() {
178 return Prompt({
179 type: 'list',
180 name: 'error',
181 message: 'try again, go back or exit?',
182 choices: [
183 {name: chalk.green('Try Again?'), value: 'again'},
184 {name: chalk.yellow('Go Back'), value: 'back'},
185 {name: chalk.red('Exit'), value: 'exit'}
186 ]
187 })
188}
189
190function handleError(err, fn){
191 switch (err) {

Callers

nothing calls this directly

Calls 1

PromptFunction · 0.85

Tested by

no test coverage detected