Merge pull request #16052 from markelog/ora-fail

Use ora#fail instead of console.log
This commit is contained in:
Daniel Lee 2019-03-18 17:35:54 +01:00 committed by GitHub
commit 8859d16a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}