fix type error

This commit is contained in:
Dax Raad 2025-07-13 17:25:13 -04:00
parent 90d6c4ab41
commit 73d54c7068

View file

@ -95,7 +95,7 @@ export const RunCommand = cmd({
UI.println(UI.Style.TEXT_INFO_BOLD + "~ https://opencode.ai/s/" + session.id.slice(-8))
} catch (error) {
if (error instanceof Error && error.message.includes("disabled")) {
UI.println(UI.Style.TEXT_ERROR_BOLD + "! " + error.message)
UI.println(UI.Style.TEXT_DANGER_BOLD + "! " + error.message)
} else {
throw error
}