fix: validate accept header before returning html (#27019)

This commit is contained in:
Jason Rasmussen 2026-03-18 14:15:48 -04:00 committed by GitHub
parent 38b135ff36
commit 77020e742a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -81,7 +81,7 @@ export const connect = async (url: string, key: string) => {
const [error] = await withError(getMyUser());
if (isHttpError(error)) {
logError(error, 'Failed to connect to server');
logError(error, `Failed to connect to server ${url}`);
process.exit(1);
}