X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Fplugins%2Fagendav.rb;h=2b2952f01a9254e01331b7a663d632762b8eb0ea;hp=1366bd6db69a15452a0b777dd3b131e65b90d54a;hb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;hpb=483d14dc8228a81d12fb109d3ed6510e2d2b03c1 diff --git a/lib/rm/plugins/agendav.rb b/lib/rm/plugins/agendav.rb index 1366bd6..2b2952f 100644 --- a/lib/rm/plugins/agendav.rb +++ b/lib/rm/plugins/agendav.rb @@ -12,6 +12,7 @@ class AgendavRm 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) sql_queries = ['DELETE FROM prefs WHERE username = $1;'] sql_queries << 'DELETE FROM shared WHERE user_from = $1;'