Skip to content

Commit 94e74f5

Browse files
committed
fix: class cast exception
1 parent 4001f7d commit 94e74f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ class CoderCLIManager(
267267
}
268268

269269
else -> {
270-
UnsignedBinaryExecutionDeniedException((result as DownloadResult.Failed).error.message)
271-
val failure = result as DownloadResult.Failed
270+
val failure = result as VerificationResult.Failed
271+
UnsignedBinaryExecutionDeniedException(result.error.message)
272272
logger.error("Failed to verify signature for ${cliResult.dst}", failure.error)
273273
}
274274
}

0 commit comments

Comments
 (0)