mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Write error output
This commit is contained in:
parent
3483219925
commit
3c40c60a3e
1 changed files with 5 additions and 1 deletions
|
|
@ -106,6 +106,8 @@ async function uninstallIfInstalled() {
|
|||
);
|
||||
|
||||
if (uninstallResult.status !== 0) {
|
||||
ui.writeInformation(uninstallResult.stdout);
|
||||
ui.writeInformation(uninstallResult.stderr);
|
||||
throw new Error(`Uninstall failed (exit code: ${uninstallResult.status})`);
|
||||
}
|
||||
}
|
||||
|
|
@ -154,7 +156,9 @@ async function startService() {
|
|||
});
|
||||
|
||||
if (startResult.status !== 0) {
|
||||
throw new Error(`Failed to start service (exit code: ${startResult.status})`);
|
||||
throw new Error(
|
||||
`Failed to start service (exit code: ${startResult.status})`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue