]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/plugins/roundcube_db.rb
Implement user_exists() everywhere and use it to correct the console output.
[mailshears.git] / lib / rm / plugins / roundcube_db.rb
index 5687ce436ea76cca659f66cd00b6825499ae43b1..5cda273643029ef808c9b184621017779f92806e 100644 (file)
@@ -11,6 +11,8 @@ class RoundcubeDbRm
   def delete_account(account)
     # Delete the given username and any records in other tables
     # belonging to it.
+    raise NonexistentAccountError.new(account) if not user_exists(account)
+
     user_id = self.get_user_id(account)
 
     # The Roundcube developers were nice enough to include