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)