more information for bookmark without attachment

This commit is contained in:
Evan Prodromou 2011-04-10 19:27:09 -04:00
parent 7c62835900
commit a665d1f772
1 changed files with 3 additions and 1 deletions

View 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];