If a Notice insert fails, don't continue processing it

This commit is contained in:
Mikael Nordfeldth 2014-11-27 14:29:50 +01:00
parent e0d0a59706
commit 411ce0629c
1 changed files with 1 additions and 0 deletions

View File

@ -686,6 +686,7 @@ class Notice extends Managed_DataObject
if (!empty($notice->id)) {
$notice->delete();
}
throw $e;
}
}