Update frontend/lib/api.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2026-01-30 22:42:23 +00:00
committed by GitHub
parent 5343fd9f51
commit 69dee82d89

View File

@@ -118,6 +118,7 @@ class ApiClient {
if (response.status === 401) {
this.setToken(null);
triggerAuthError();
throw new Error('Session expired');
}
throw new Error('Failed to execute command');
}