From: Evan Prodromou Date: Sun, 10 Apr 2011 23:27:09 +0000 (-0400) Subject: more information for bookmark without attachment X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a665d1f77292ad9bdbdc5f5b6a8798dcfe582076;p=quix0rs-gnu-social.git more information for bookmark without attachment --- diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index db2a32f392..5e11192b48 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -519,7 +519,9 @@ class BookmarkPlugin extends MicroAppPlugin if (count($atts) < 1) { // Something wrong; let default code deal with it. // TRANS: Exception thrown when a bookmark has no attachments. - throw new Exception(_m('Bookmark has no attachments.')); + throw new Exception(sprintf(_m('Bookmark %s (notice %d) has no attachments.'), + $nb->id, + $notice->id)); } $att = $atts[0];