lib/apimaster/error.rb in apimaster-0.0.3 vs lib/apimaster/error.rb in apimaster-0.0.4

- old
+ new

@@ -34,10 +34,10 @@ end end class InvalidFieldError < NormalError def initialize(resource = nil, field = nil) - super("The formatting of the field '#{field}' on a resource '#{resource}' is invalid.", 422, :invalid, resource, field) + super("The formatting of the field '#{field}' on a resource '#{resource}' is invalid.", 422, :invalid_field, resource, field) end end class AlreadyExistsError < NormalError def initialize(resource = nil, field = nil)