mirror of https://github.com/vector-im/riot-web
				
				
				
			Fix logging for failed searches
error is an object so appending it to a string is not helpfulpull/21833/head
							parent
							
								
									b6ef30af8f
								
							
						
					
					
						commit
						53b753789a
					
				| 
						 | 
				
			
			@ -1203,7 +1203,7 @@ export default createReactClass({
 | 
			
		|||
            });
 | 
			
		||||
        }, function(error) {
 | 
			
		||||
            const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
 | 
			
		||||
            console.error("Search failed: " + error);
 | 
			
		||||
            console.error("Search failed", error);
 | 
			
		||||
            Modal.createTrackedDialog('Search failed', '', ErrorDialog, {
 | 
			
		||||
                title: _t("Search failed"),
 | 
			
		||||
                description: ((error && error.message) ? error.message : _t("Server may be unavailable, overloaded, or search timed out :(")),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue