mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Fix: Improve error message on timeout (#4054)
* Fix: Improve error message on timeout * Chore: Format
This commit is contained in:
		@@ -938,7 +938,11 @@ class Monitor extends BeanModel {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            } catch (error) {
 | 
					            } catch (error) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                if (error?.name === "CanceledError") {
 | 
				
			||||||
 | 
					                    bean.msg = `timeout by AbortSignal (${this.timeout}s)`;
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
                    bean.msg = error.message;
 | 
					                    bean.msg = error.message;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                // If UP come in here, it must be upside down mode
 | 
					                // If UP come in here, it must be upside down mode
 | 
				
			||||||
                // Just reset the retries
 | 
					                // Just reset the retries
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user