From a665d1f77292ad9bdbdc5f5b6a8798dcfe582076 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 10 Apr 2011 19:27:09 -0400 Subject: [PATCH] more information for bookmark without attachment --- plugins/Bookmark/BookmarkPlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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];