mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 20:40:21 +02:00
fix subsonic login error: use status instead
This commit is contained in:
@@ -251,6 +251,9 @@ axiosClient.interceptors.response.use(
|
||||
message: data['subsonic-response'].error.message,
|
||||
title: i18n.t('error.genericError', { postProcess: 'sentenceCase' }) as string,
|
||||
});
|
||||
|
||||
// Since we do status === 200, override this value with the error code
|
||||
response.status = data['subsonic-response'].error.code;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user