Skip to content

Commit a9a37c5

Browse files
committed
fix: class cast exception when handling Failed verification result
verification result was improperly cast to download result when signature verification failed to run.
1 parent 478a5b1 commit a9a37c5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixed
6+
7+
- fix class cast exception during signature verification
8+
59
## 0.5.1 - 2025-07-21
610

711
### Added

src/main/kotlin/com/coder/toolbox/cli/CoderCLIManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ class CoderCLIManager(
277277
}
278278

279279
else -> {
280-
UnsignedBinaryExecutionDeniedException((result as Failed).error.message)
281-
val failure = result as DownloadResult.Failed
280+
val failure = result as Failed
281+
UnsignedBinaryExecutionDeniedException(result.error.message)
282282
context.logger.error(failure.error, "Failed to verify signature for ${cliResult.dst}")
283283
}
284284
}

0 commit comments

Comments
 (0)