mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: rest error message
This commit is contained in:
parent
ead838637c
commit
bcadf6022c
@ -206,7 +206,7 @@ export class ApiHandler {
|
||||
}
|
||||
}
|
||||
if (response.status) {
|
||||
return new Error(errMessage ?? response.statusText);
|
||||
return new Error(errMessage || response.statusText);
|
||||
}
|
||||
return new Error('Unknown error');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user