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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3656ca0e9a54167aca89ef17945dcea51c9e5eddfcb5863bf961d29e607669c
4
- data.tar.gz: '027490a1df8c80fc7b21740219710ca14a22ee6750d273f4fcd59fd410a345a1'
3
+ metadata.gz: b9fab210ebb0f9a9f7d1a1877fa7abacf6cfb89398c23ee7602e086628523a85
4
+ data.tar.gz: 3d5913b9aa21d962c3868276031719a19582216195a71abdf6e3ba262c58d7f0
5
5
  SHA512:
6
- metadata.gz: 65be75f9b91e26d4f2e7e6367ebd005a0e85dece0090927f65de924c9e19cc362bb5d5a7d890311f5917c14e0553b7b0a67a7d73ff3eacc2e6dd68ce6dba9f59
7
- data.tar.gz: 56fb3b1c21a3063228d96ee1145fd2546760e257d165b653ad5716efd2ea2dcd7b5ab3bda719089eb3f3bb2b12e1b84e3ce38291fa2c355e6268e02724c530ce
6
+ metadata.gz: b4e72a675b1ba15da4cc87236f3ead957da814c7246692d00a69ef55d26bfdb857d58cbafee830e8cf03ed11681bce016be238155bef9f0367b46f6c28f0bd63
7
+ data.tar.gz: 2c77c1be0fdbb2f6f4b5df7eb58c2ef423c50366a8bf7b2869ec4e5c2ac996468aa20de6c7020f73c2592068678323492ce0f8f1074d1e10b0d7a91287689cb2
@@ -1,3 +1,6 @@
1
+ # v0.2.18
2
+ * Include original error message when available
3
+
1
4
  # v0.2.16
2
5
  * Provide default UI instance and use for error output
3
6
  * Automatically configure logger on command setup
@@ -53,13 +53,17 @@ module Bogo
53
53
  puts slop_result.help
54
54
  exit -1
55
55
  rescue StandardError, ScriptError => err
56
- output_error err.message
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
- "#{err.message}\n#{err.backtrace.join("\n")}"
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
- "#{err.original.message}\n#{err.original.backtrace.join("\n")}"
66
+ "#{err.original.message}\n#{err.original.backtrace.join("\n")}"
63
67
  output_debug msg
64
68
  end
65
69
  end
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  module Cli
3
3
  # Current library version
4
- VERSION = Gem::Version.new("0.2.16")
4
+ VERSION = Gem::Version.new("0.2.18")
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts