From a95da365bb97e5d6a2982a26a20dd73a65d98726 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Wed, 2 Apr 2014 01:49:56 -0700 Subject: [PATCH] Avoid NoMethodError on SSLCertificateNotVerified. --- bin/restclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/restclient b/bin/restclient index a37d880..8ac26c2 100755 --- a/bin/restclient +++ b/bin/restclient @@ -50,7 +50,7 @@ if @verb end exit 0 rescue RestClient::Exception => e - puts e.response.body if e.respond_to? :response + puts e.response.body if e.respond_to?(:response) && e.response raise end end