]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
more information for bookmark without attachment
authorEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:27:09 +0000 (19:27 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:27:09 +0000 (19:27 -0400)
plugins/Bookmark/BookmarkPlugin.php

index db2a32f39228824be11e687acacd8e447cc5ba07..5e11192b48cc44df0585913fbf66c8c9ea9685f0 100644 (file)
@@ -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];