UNPKG

@t1mmen/srtd

Version:

Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀

14 lines • 439 B
/** * Extracts error message from unknown error type. * Handles Error instances and arbitrary values. */ export function getErrorMessage(error) { return error instanceof Error ? error.message : String(error); } /** * Checks if an error is an Inquirer prompt exit (Ctrl+C). */ export function isPromptExit(error) { return error instanceof Error && error.name === 'ExitPromptError'; } //# sourceMappingURL=getErrorMessage.js.map