lib/dato/api_client.rb in dato-0.7.15 vs lib/dato/api_client.rb in dato-0.7.16
- old
+ new
@@ -98,14 +98,13 @@
elsif e.response[:status] == 422 && batch_data_validation?(e.response)
puts 'Validating items, waiting 1 second and retrying...'
sleep(1)
request(*args)
else
- # puts body.inspect
- # puts '===='
- # puts error.message
- # puts '===='
error = ApiError.new(e.response)
+ puts '===='
+ puts error.message
+ puts '===='
raise error
end
end
private