We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0a2a41 + 16d8bd5 commit a72a281Copy full SHA for a72a281
internal/utils/codecrafters_client.go
@@ -8,6 +8,7 @@ import (
8
"time"
9
10
retry "github.com/avast/retry-go"
11
+ "github.com/getsentry/sentry-go"
12
"github.com/levigross/grequests"
13
"github.com/mitchellh/go-wordwrap"
14
)
@@ -190,7 +191,10 @@ func (c CodecraftersClient) FetchBuild(buildId string) (FetchBuildStatusResponse
190
191
}
192
193
if fetchBuildResponse.Status != "failure" && fetchBuildResponse.Status != "success" {
- return fmt.Errorf("unexpected build status: %s", fetchBuildResponse.Status)
194
+ err = fmt.Errorf("unexpected build status: %s", fetchBuildResponse.Status)
195
+
196
+ sentry.CaptureException(err)
197
+ return err
198
199
200
return nil
0 commit comments