bogo-cli 0.2.16 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/bogo-cli/setup.rb +7 -3
- data/lib/bogo-cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9fab210ebb0f9a9f7d1a1877fa7abacf6cfb89398c23ee7602e086628523a85
|
4
|
+
data.tar.gz: 3d5913b9aa21d962c3868276031719a19582216195a71abdf6e3ba262c58d7f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e72a675b1ba15da4cc87236f3ead957da814c7246692d00a69ef55d26bfdb857d58cbafee830e8cf03ed11681bce016be238155bef9f0367b46f6c28f0bd63
|
7
|
+
data.tar.gz: 2c77c1be0fdbb2f6f4b5df7eb58c2ef423c50366a8bf7b2869ec4e5c2ac996468aa20de6c7020f73c2592068678323492ce0f8f1074d1e10b0d7a91287689cb2
|
data/CHANGELOG.md
CHANGED
data/lib/bogo-cli/setup.rb
CHANGED
@@ -53,13 +53,17 @@ module Bogo
|
|
53
53
|
puts slop_result.help
|
54
54
|
exit -1
|
55
55
|
rescue StandardError, ScriptError => err
|
56
|
-
|
56
|
+
err_msg = err.message
|
57
|
+
if err.respond_to?(:original) && err.original
|
58
|
+
err_msg << "\n#{err.original.message}"
|
59
|
+
end
|
60
|
+
output_error err_msg
|
57
61
|
if ENV["DEBUG"]
|
58
62
|
output_debug "Stacktrace: #{err.class}: " \
|
59
|
-
|
63
|
+
"#{err.message}\n#{err.backtrace.join("\n")}"
|
60
64
|
if err.respond_to?(:original) && err.original
|
61
65
|
msg = "Original Stacktrace: #{err.original.class}: " \
|
62
|
-
|
66
|
+
"#{err.original.message}\n#{err.original.backtrace.join("\n")}"
|
63
67
|
output_debug msg
|
64
68
|
end
|
65
69
|
end
|
data/lib/bogo-cli/version.rb
CHANGED