OSDN Git Service

Tune general error message.
authorTatsuki Sugiura <sugi@nemui.org>
Wed, 16 Mar 2016 06:55:32 +0000 (15:55 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Wed, 16 Mar 2016 06:55:32 +0000 (15:55 +0900)
lib/osdn/cli/runner.rb

index 03e6716..1208d97 100644 (file)
@@ -88,9 +88,9 @@ module OSDN
             elsif err["error_description"]
               logger.fatal err["error_description"]
             else
-              logger.fatal "Command failed: #{e.inspect}"
+              logger.fatal "Command failed by ApiError: #{e.response_body}"
             end
-          rescue
+          rescue => e
             logger.fatal "Command failed: #{e.inspect}"
           end
         end