1
0

feat: add error log

This commit is contained in:
502647092 2018-10-29 18:37:22 +08:00
parent 92cd37cb0d
commit a7c2dd048e

View File

@ -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]