Commit 8859d16a by Daniel Lee Committed by GitHub

Merge pull request #16052 from markelog/ora-fail

Use ora#fail instead of console.log
parents cdced6e4 2b9cf113
......@@ -10,8 +10,7 @@ export const useSpinner = <T>(spinnerLabel: string, fn: FnToSpin<T>, killProcess
await fn(options);
spinner.succeed();
} catch (e) {
spinner.fail();
console.log(e);
spinner.fail(e);
if (killProcess) {
process.exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment