Improve error reporting for trying to select an unknown message

(imported from commit 4fdc09d11e35eeed2510de6668d5a982c915f8c0)
This commit is contained in:
Zev Benjamin 2013-06-04 15:58:33 -04:00
parent b753eb0c1e
commit 1d2c1a00bc

View File

@ -109,7 +109,8 @@ MessageList.prototype = {
}
if (this.get(id) === undefined) {
if (!opts.use_closest) {
blueslip.error("Selected message id not in MessageList");
blueslip.error("Selected message id not in MessageList",
{table_name: this.table_name, id: id});
}
id = this.closest_id(id);
opts.id = id;