message_list: Fix misported blueslip.fatal call.

In fe66aef0ad, this call to
blueslip.fatal was ported incorrectly to `throw new Error` despite the
latter not supporting the extra_data parameter.

We address this by just doing blueslip logging with the extra data first.

Fixes #18273.
This commit is contained in:
Tim Abbott 2021-04-27 23:25:48 -07:00
parent c5ed782581
commit 826685f0ee
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ export class MessageList {
id,
items_length: this.data.num_items(),
};
throw new Error("Cannot select id -1", error_data);
blueslip.error("Cannot select id -1", error_data);
throw new Error("Cannot select id -1");
}
id = closest_id;