fix(ui): error handling
This commit is contained in:
parent
7485016f92
commit
047a4d0108
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ export default class APIClient {
|
|||
if (response.ok) {
|
||||
return response;
|
||||
}
|
||||
let errorMsg = `Something went wrong. Status: ${response.status}`;
|
||||
let errorMsg = `Something went wrong.`;
|
||||
try {
|
||||
const errorData = await response.json();
|
||||
errorMsg = errorData.errors?.[0] || errorMsg;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue