File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,7 @@ func (c CodecraftersClient) FetchBuild(buildId string) (FetchBuildStatusResponse
191
191
}
192
192
193
193
if fetchBuildResponse .Status != "failure" && fetchBuildResponse .Status != "success" {
194
- err = fmt .Errorf ("unexpected build status: %s" , fetchBuildResponse .Status )
195
-
196
- sentry .CaptureException (err )
197
- return err
194
+ return fmt .Errorf ("unexpected build status: %s" , fetchBuildResponse .Status )
198
195
}
199
196
200
197
return nil
@@ -207,6 +204,10 @@ func (c CodecraftersClient) FetchBuild(buildId string) (FetchBuildStatusResponse
207
204
)
208
205
209
206
if err != nil {
207
+ if fetchBuildResponse .Status != "failure" && fetchBuildResponse .Status != "success" {
208
+ sentry .CaptureException (err )
209
+ }
210
+
210
211
return FetchBuildStatusResponse {}, err
211
212
}
212
213
You can’t perform that action at this time.
0 commit comments