feat: add error log
This commit is contained in:
parent
92cd37cb0d
commit
a7c2dd048e
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]
|
||||||
|
Loading…
Reference in New Issue
Block a user