feat: add error log
This commit is contained in:
		
							
								
								
									
										1
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								main.go
									
									
									
									
									
								
							@@ -71,6 +71,7 @@ func syncClipboard(a string) {
 | 
				
			|||||||
			response, err := http.Get(a)
 | 
								response, err := http.Get(a)
 | 
				
			||||||
			if err != nil {
 | 
								if err != nil {
 | 
				
			||||||
				time.Sleep(1000 * time.Millisecond)
 | 
									time.Sleep(1000 * time.Millisecond)
 | 
				
			||||||
 | 
									fmt.Printf("Http Request Error: %s\n", err.Error())
 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			texts, ok := response.Header[textHeader]
 | 
								texts, ok := response.Header[textHeader]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user