more information for bookmark without attachment
This commit is contained in:
parent
7c62835900
commit
a665d1f772
@ -519,7 +519,9 @@ class BookmarkPlugin extends MicroAppPlugin
|
|||||||
if (count($atts) < 1) {
|
if (count($atts) < 1) {
|
||||||
// Something wrong; let default code deal with it.
|
// Something wrong; let default code deal with it.
|
||||||
// TRANS: Exception thrown when a bookmark has no attachments.
|
// 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];
|
$att = $atts[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user