aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2016-01-16 22:36:42 +0100
committerMikael Nordfeldth <mmn@hethane.se>2016-01-16 22:39:04 +0100
commitdeda83fdef06bafe9f419fc33c5d11610c9e21c3 (patch)
tree1812bdae82a9a5b0c5446b2f0098cc249c45c2d4 /classes
parent4678546d3372d77b02c90f8335632fdd517f69fc (diff)
downloadgnu-social-deda83fdef06bafe9f419fc33c5d11610c9e21c3.tar
gnu-social-deda83fdef06bafe9f419fc33c5d11610c9e21c3.zip
Distinguish notice saving errors from others for Salmon
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 963b24ba5e..523c609991 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -950,7 +950,7 @@ class Notice extends Managed_DataObject
$object = null;
Event::handle('StoreActivityObject', array($act, $stored, $options, &$object));
if (empty($object)) {
- throw new ServerException('Unsuccessful call to StoreActivityObject '.$stored->getUri() . ': '.$act->asString());
+ throw new NoticeSaveException('Unsuccessful call to StoreActivityObject '._ve($stored->getUri()) . ': '._ve($act->asString()));
}
// If something changed in the Notice during StoreActivityObject