tasks/mashery.thor in mashery-0.1.0 vs tasks/mashery.thor in mashery-0.1.1

- old
+ new

@@ -27,9 +27,11 @@ ::Mashery.test_mode = ENV['MASHERY_PRODUCTION_MODE'].blank? ::Mashery.logger.level = Logger::DEBUG ::Mashery.client = ::Mashery::Client.new(site_id, key, secret) begin yield + rescue ::Mashery::HttpException => e + error("HTTP error: #{e.message}") rescue ::Mashery::JsonRpcException => e error(e.message) rescue ::Mashery::ValidationException => e e.errors.each {|err| warn("#{err['field']}: #{err['message']}")} error("Unable to execute method due to validation errors")