Skip to content

Commit

Permalink
Fix usage of DataMapper::ValidationErrors#add [#16]
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Flatter committed Jun 26, 2008
1 parent 25a0b37 commit d3b6208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/plugin.rb
Expand Up @@ -62,7 +62,7 @@ def install
rescue Exception => err
# 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
self.destroy
self.errors.add "Error installing plugin: #{err.message}"
self.errors.add :general, "Error installing plugin: #{err.message}"
end
else
# If we do, destroy the plugin to rollback, and then the form will display the errors
Expand Down

0 comments on commit d3b6208

Please sign in to comment.