Commit f189266

mokha <mokha@cisco.com>
2018-02-12 23:17:47
print error message.
1 parent 8e75fb2
Changed files (1)
lib
saml
kit
lib/saml/kit/cli/decode.rb
@@ -17,6 +17,8 @@ module Saml
           ]
           say ""
           say document.to_xml(pretty: true), :green
+        rescue StandardError => error
+          say error.message, :red
         end
 
         desc "post saml", "Decodes the SAMLRequest/SAMLResponse using the HTTP Post binding"
@@ -34,6 +36,8 @@ module Saml
           end
           say ""
           say document.to_xml(pretty: true), :green
+        rescue StandardError => error
+          say error.message, :red
         end
       end
     end