lib/withings/error.rb in simplificator-withings-0.2.0 vs lib/withings/error.rb in simplificator-withings-0.2.1

- old
+ new

@@ -5,16 +5,15 @@ 250 => "The userid and publickey provided do not match, or the user does not share its data", 264 => "The email address provided is either unknown or invalid", 293 => "The callback URL is either absent or incorrect", 294 => "No such subscription could be deleted", 304 => "The comment is either absent or incorrect", - 2554 => "Invalid Parameters . Not sure about this error message, it's not documented", 2555 => "An unknown error occurred", } attr_reader :status def initialize(status) - super(STATUS_CODES[status] || 'Undefined status code') + super(STATUS_CODES[status] || "Undefined status code. We do not have any description about the code #{status}. If you know more, then please let me know.") @status = status end def to_s super + " - Status code: #{self.status}" \ No newline at end of file