execute 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c906ff5ff48bc5b3bafe50066e829dc7a732ac
|
4
|
+
data.tar.gz: d772de368b31e01ff4001e445a8aac1e712d8025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c7aac339486ea6ffb32cb56b1021436ead069b9ad249558634c10dd2a5b8ab8db06fd94db825178458e81787b3e2b8e20488a5a278430784680c88dbf5df74
|
7
|
+
data.tar.gz: d79a6c4d6eb5f1333d6f20d76edf37f102347e2fe4786e9d84660afca880cb356f95a3141d2b489982415ea46d3f9273766f6bbb64b4c53723b55d323f282b6c
|
data/lib/cmd.rb
CHANGED
@@ -56,8 +56,9 @@ class CMD < Hash
|
|
56
56
|
end
|
57
57
|
|
58
58
|
if((self[:exit_code] != 0) && !self[:ignore_exit_code])
|
59
|
-
exception_text = self[:
|
60
|
-
exception_text = self[:
|
59
|
+
exception_text = "Exit code: #{self[:exit_code}"
|
60
|
+
exception_text = "#{exception_text}\n#{self[:error]}"
|
61
|
+
exception_text = "#{exception_text}\n#{self[:output]}" if(self[:error].empty?)
|
61
62
|
raise exception_text
|
62
63
|
end
|
63
64
|
end
|