lib/parse/error.rb in parse-ruby-client-0.1.14 vs lib/parse/error.rb in parse-ruby-client-0.1.15
- old
+ new
@@ -21,8 +21,16 @@
@error = response["error"]
end
super("#{@code}: #{@error}")
end
+
+ def to_s
+ @message || super
+ end
+
+ def message=(msg)
+ @message = msg
+ end
end
end
\ No newline at end of file