Skip to content

Commit ac292a1

Browse files
committed
chore(ocp): ensure give polling failures are reported as an error to bugsnag
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 40d2954 commit ac292a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

services/opencode/src/main/kotlin/com/getcode/opencode/internal/transactors/GiveBillTransactor.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ internal class GiveBillTransactor(
134134
)
135135
},
136136
onFailure = {
137-
if (it !is GiveTransactorError) {
138-
ErrorUtils.handleError(it)
139-
}
140137
logAndFail(it)
141138
}
142139
)

services/opencode/src/main/kotlin/com/getcode/opencode/internal/transactors/Transactor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ abstract class Transactor<E: CodeServerError>(
1616
tag = tag,
1717
message = error.message.orEmpty(),
1818
metadata = metadata,
19-
type = TraceType.Process
19+
type = TraceType.Error,
20+
error = error
2021
)
2122
return Result.failure(error)
2223
}

0 commit comments

Comments
 (0)