mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Log more data for "Cannot select id -1".
Show the incoming id and the length of this._items. (imported from commit 106dda862918a4f40481a5692cbfee1738218150)
This commit is contained in:
		@@ -172,7 +172,12 @@ MessageList.prototype = {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (closest_id === -1) {
 | 
			
		||||
            blueslip.fatal("Cannot select id -1", {table_name: this.table_name});
 | 
			
		||||
            var error_data = {
 | 
			
		||||
                table_name: this.table_name,
 | 
			
		||||
                id: id,
 | 
			
		||||
                items_length: this._items.length
 | 
			
		||||
            };
 | 
			
		||||
            blueslip.fatal("Cannot select id -1", error_data);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        id = closest_id;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user