minor: Make comment more accurate in popover error condition.

This commit is contained in:
Steve Howell
2017-11-06 06:32:31 -08:00
committed by Tim Abbott
parent 5271241b24
commit c291c74e45

View File

@@ -82,9 +82,8 @@ function show_user_info_popover(element, user, message) {
var elt = $(element); var elt = $(element);
if (elt.data('popover') === undefined) { if (elt.data('popover') === undefined) {
if (user === undefined) { if (user === undefined) {
// This case should not happen, because // This is never supposed to happen, not even for deactivated
// people.extract_people_from_message should have added // users, so we'll need to debug this error if it occurs.
// the message sender to the people.js data set.
blueslip.error('Bad sender in message' + message.sender_id); blueslip.error('Bad sender in message' + message.sender_id);
return; return;
} }