@inquirer/search - exit on source failure
Sorry, this is probably an incredibly naive question; if the source() method fails for some reason (dead network for example) and I want to force exit the prompt; how does one do this? source() seems to catch all errors and just print the message to the terminal, which isn't very helpful. Aside from process.exit-ing, I can't figure out what to do.
That's actually a very good question.
Right now we catch the error and display it; but there's nothing the user can do if the failure is constant and not specific to the search term (or intermittent.)
There's a good question about what inquirer should do in a case like this... We could for example let the user enter to exit. But between this and doing nothing leaving the user ctrl-c, I'm not sure it's worth it?
Honestly I kinda think the prompt should exit. Maybe some kind of specific error type? It feels quite user unfriendly to me to leave a user in a dead prompt right? Especially when the software itself could account for that state