Throw error message instead of exit code

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax committed 2020-10-21 21:07:57 +02:00
1 parent 5af5c5fa9d
commit de804a56b7
5 files changed
+76 -14

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ export interface ExecResult {
stderr: string;
}
export const exec = async (command: string, args: string[] = [], silent: boolean): Promise<ExecResult> => {
export const exec = async (command: string, args: string[] = [], silent?: boolean): Promise<ExecResult> => {
let stdout: string = '';
let stderr: string = '';