Skip to content
Browse files

Add body to comp validation failure.

  • Loading branch information...
1 parent 84839f6 commit 6e3b5e81aeabf126f9019a7077d8906ec7f8bad9 @ntalbott ntalbott committed Nov 22, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 .rvmrc
  2. +1 −1 lib/spreedly.rb
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm ruby-1.8.7@spreedly-gem
View
2 lib/spreedly.rb
@@ -160,7 +160,7 @@ def comp(quantity, units, feature_level=nil)
when '404'
raise "Could not comp subscriber: no longer exists."
when '422'
- raise "Could not comp subscriber: validation failed."
+ raise "Could not comp subscriber: validation failed (#{result.body})."
when '403'
raise "Could not comp subscriber: invalid comp type (#{endpoint})."
else

0 comments on commit 6e3b5e8

Please sign in to comment.
Something went wrong with that request. Please try again.