mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 17:06:57 -06:00
Use ora#fail instead of console.log
Since with ora#fail you can stderr it instead of using the stdout, and it's a bit nicer since it will show that cross sign :)
This commit is contained in:
parent
d1e48a07b2
commit
2b9cf1132f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user