mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Improve error handling when Navidrome fails
This commit is contained in:
@@ -367,7 +367,7 @@ export class Navidrome implements MusicService {
|
||||
)
|
||||
.then((json) => json["subsonic-response"])
|
||||
.then((json) => {
|
||||
if (isError(json)) throw json.error._message;
|
||||
if (isError(json)) throw `Navidrome error:${json.error._message}`;
|
||||
else return json as unknown as T;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user