From d473317c7cb5874d49f424ad4d284f4d48389a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E6=B5=B7=E4=BB=B2=E5=AD=90?= Date: Sat, 13 Aug 2022 22:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=B8=8D=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exceptionless/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exceptionless/api.go b/exceptionless/api.go index ebaff21..0129bc3 100644 --- a/exceptionless/api.go +++ b/exceptionless/api.go @@ -34,7 +34,7 @@ func Post(endpoint string, postBody string, authorization string) string { client := &http.Client{} resp, err := client.Do(req) if err != nil { - panic(err) + return err.Error() } defer resp.Body.Close() // body, _ := ioutil.ReadAll(resp.Body)