From 0ec65738f15a87b026e3cbd2b6f1383245eceb32 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Mon, 1 Dec 2014 11:59:15 -0600 Subject: [PATCH] Kill another puts. --- web/lib/recurly_client.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/lib/recurly_client.rb b/web/lib/recurly_client.rb index b4dcb02a3..fed21a7a8 100644 --- a/web/lib/recurly_client.rb +++ b/web/lib/recurly_client.rb @@ -11,7 +11,7 @@ module JamRuby account = Recurly::Account.create(options) raise RecurlyClientError.new(account.errors) if account.errors.any? rescue Recurly::Error, NoMethodError => x - puts "Errorrr: #{x.inspect}" + puts raise RecurlyClientError, x.to_s else if account @@ -56,10 +56,8 @@ module JamRuby account = get_account(current_user) if (account.present?) begin - account.billing_info=billing_info - puts "Saving..." - account.billing_info.save - puts "...saved" + account.billing_info=billing_info + account.billing_info.save rescue Recurly::Error, NoMethodError => x raise RecurlyClientError, x.to_s end