mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(web): auth fallback to login instead of error (#331)
This commit is contained in:
parent
00ef566450
commit
5ef2ea04b5
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export async function HttpClient<T>(
|
||||||
AuthContext.reset();
|
AuthContext.reset();
|
||||||
|
|
||||||
// Show an error toast to notify the user what occurred
|
// Show an error toast to notify the user what occurred
|
||||||
return Promise.reject(new Error("Unauthorized."));
|
return Promise.resolve(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.reject(new Error(await response.text()));
|
return Promise.reject(new Error(await response.text()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue