@monodeploy/io
Advanced tools
Comparing version 0.2.23 to 0.3.0
@@ -5,2 +5,11 @@ # Changelog | ||
## [0.2.23](https://github.com/tophat/monodeploy/compare/@monodeploy/io@0.2.22...@monodeploy/io@0.2.23) "@monodeploy/io" (2021-10-25)<a name="0.2.23"></a> | ||
### Bug Fixes | ||
* update to yarn 3.1.0 (#440) ([5eb4ad0](https://github.com/tophat/monodeploy/commits/5eb4ad0)) | ||
## [0.2.22](https://github.com/tophat/monodeploy/compare/@monodeploy/io@0.2.21...@monodeploy/io@0.2.22) "@monodeploy/io" (2021-10-11)<a name="0.2.22"></a> | ||
@@ -7,0 +16,0 @@ |
@@ -6,3 +6,5 @@ import { PortablePath } from '@yarnpkg/fslib'; | ||
code: number; | ||
constructor({ code, stdout, stderr }: { | ||
command: string; | ||
constructor({ command, code, stdout, stderr, }: { | ||
command: string; | ||
stdout?: string; | ||
@@ -9,0 +11,0 @@ stderr?: string; |
@@ -8,7 +8,8 @@ "use strict"; | ||
class ExecException extends Error { | ||
constructor({ code, stdout, stderr }) { | ||
super(`Exec failed with code: ${code}`); | ||
constructor({ command, code, stdout, stderr, }) { | ||
super(`Executing '${command}' failed with code: ${code}\n\n${stderr}`); | ||
this.code = code; | ||
this.stdout = stdout; | ||
this.stderr = stderr; | ||
this.command = command; | ||
} | ||
@@ -36,2 +37,3 @@ } | ||
throw new ExecException({ | ||
command, | ||
code, | ||
@@ -38,0 +40,0 @@ stdout: stdoutString, |
{ | ||
"name": "@monodeploy/io", | ||
"version": "0.2.23", | ||
"version": "0.3.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
21133
292