mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Catch unhandled io errors in subsonic (#75)
This commit is contained in:
@@ -400,6 +400,8 @@ export class Subsonic implements MusicService {
|
||||
"User-Agent": USER_AGENT,
|
||||
},
|
||||
...config,
|
||||
}).catch(e => {
|
||||
throw `Subsonic failed with: ${e}`;
|
||||
})
|
||||
.then((response) => {
|
||||
if (response.status != 200 && response.status != 206) {
|
||||
|
||||
Reference in New Issue
Block a user