Skip to content

Commit e0f8a5a

Browse files
Alexander FlatterEl Draper
authored andcommitted
Fix usage of DataMapper::ValidationErrors#add [#16]
1 parent a2e98b4 commit e0f8a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def install
6262
rescue Exception => err
6363
# If we have an issue installing, lets destroy the plugin to rollback, and put an error on the object so it displays on the form
6464
self.destroy
65-
self.errors.add "Error installing plugin: #{err.message}"
65+
self.errors.add :general, "Error installing plugin: #{err.message}"
6666
end
6767
else
6868
# If we do, destroy the plugin to rollback, and then the form will display the errors

0 commit comments

Comments
 (0)