diff --git a/lib/couchbase-orm/persistence.rb b/lib/couchbase-orm/persistence.rb index a837e404..3b5c7117 100644 --- a/lib/couchbase-orm/persistence.rb +++ b/lib/couchbase-orm/persistence.rb @@ -36,7 +36,7 @@ def create!(attributes = nil, &block) # Raise an error if validation failed. def fail_validate!(document) - raise Error::RecordInvalid.new("Failed to save the record", document) + raise Error::RecordInvalid.new(document) end # Allow classes to overwrite the default document name