mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-02 18:47:05 -05:00 
			
		
		
		
	[enh] display engine error messages
This commit is contained in:
		
							parent
							
								
									9e79ad4bde
								
							
						
					
					
						commit
						1435ae7e96
					
				@ -135,7 +135,10 @@ def search_one_request_safe(engine_name, query, request_params, result_container
 | 
				
			|||||||
                             .format(engine_name, search_duration, timeout_limit, e))
 | 
					                             .format(engine_name, search_duration, timeout_limit, e))
 | 
				
			||||||
            requests_exception = True
 | 
					            requests_exception = True
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            result_container.add_unresponsive_engine((engine_name, gettext('unexpected crash')))
 | 
					            result_container.add_unresponsive_engine((
 | 
				
			||||||
 | 
					                engine_name,
 | 
				
			||||||
 | 
					                u'{0}: {1}'.format(gettext('unexpected crash'), e),
 | 
				
			||||||
 | 
					            ))
 | 
				
			||||||
            # others errors
 | 
					            # others errors
 | 
				
			||||||
            logger.exception('engine {0} : exception : {1}'.format(engine_name, e))
 | 
					            logger.exception('engine {0} : exception : {1}'.format(engine_name, e))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user