Update packages/opencode/src/provider/error.ts

Co-authored-by: Catriel Müller <catrielmuller@gmail.com>
This commit is contained in:
Kevin van Dijk
2026-03-11 09:58:07 +01:00
committed by GitHub
co-authored by Catriel Müller
parent 911a947e93
commit d4518c39ff
+1 -1
View File
@@ -81,7 +81,7 @@ export namespace ProviderError {
// provide a human-readable message instead of dumping raw markup
if (/^\s*<!doctype|^\s*<html/i.test(e.responseBody)) {
if (e.statusCode === 401) {
return "Unauthorized: request was blocked by a gateway or proxy. Your authentication token may be missing or expired — try running `opencode auth login <your provider URL>` to re-authenticate."
return "Unauthorized: request was blocked by a gateway or proxy. Your authentication token may be missing or expired — try running `kilo auth login <your provider URL>` to re-authenticate." // kilocode_change
}
if (e.statusCode === 403) {
return "Forbidden: request was blocked by a gateway or proxy. You may not have permission to access this resource — check your account and provider settings."