@magpie-community/opencode-factory-auth 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -681,7 +681,8 @@ export const FactoryAuthPlugin = async ({ client }) => {
|
|
|
681
681
|
text = await res.text()
|
|
682
682
|
}
|
|
683
683
|
const why = explain(res.status, text)
|
|
684
|
-
|
|
684
|
+
// the refusal, then what to do about it, as provider.Explain joins them
|
|
685
|
+
const msg = `${apiError(text, "403 Forbidden")} — ${why}`
|
|
685
686
|
return errorReply(url, res.status, "permission_error", msg, new Headers(res.headers))
|
|
686
687
|
},
|
|
687
688
|
}
|