tools: point unauthorized error at op auth (#39405)

This commit is contained in:
ferb-comma
2026-11-28 10:53:56 -06:00
committed by firestar5683
parent 273d5da6cc
commit 780e326116
+1 -1
View File
@@ -35,7 +35,7 @@ class CommaApi:
resp_json = resp.json()
if isinstance(resp_json, dict) and resp_json.get('error'):
if resp.status_code in [401, 403]:
raise UnauthorizedError('Unauthorized. Authenticate with openpilot/tools/lib/auth.py')
raise UnauthorizedError('Unauthorized. Authenticate with op auth')
e = APIError(str(resp.status_code) + ":" + resp_json.get('description', str(resp_json['error'])))
e.status_code = resp.status_code