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