Skip to content

Commit 9cdf57e

Browse files
committed
fix(ocp): correct inner types of GetLimitsError so instance checks will work
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent f200e80 commit 9cdf57e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • services/opencode/src/main/kotlin/com/getcode/opencode/model/core/errors

services/opencode/src/main/kotlin/com/getcode/opencode/model/core/errors/Errors.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ sealed class GetLimitsError(
170170
override val message: String? = null,
171171
override val cause: Throwable? = null
172172
) : CodeServerError(message, cause) {
173-
class Unrecognized : GetIntentMetadataError("Unrecognized"), NotifiableError
174-
data class Other(override val cause: Throwable? = null) : GetIntentMetadataError(message = cause?.message, cause = cause), NotifiableError
173+
class Unrecognized : GetLimitsError("Unrecognized"), NotifiableError
174+
data class Other(override val cause: Throwable? = null) : GetLimitsError(message = cause?.message, cause = cause), NotifiableError
175175
}
176176

177177
sealed class WithdrawalAvailabilityError(

0 commit comments

Comments
 (0)