mirror of
https://github.com/gotson/komga.git
synced 2025-01-09 04:08:00 +08:00
fix(webui): clearer error message on login error
This commit is contained in:
parent
e49047b4c9
commit
ca054f642f
@ -29,8 +29,10 @@ export default class KomgaUsersService {
|
||||
msg = 'Invalid authentication'
|
||||
}
|
||||
}
|
||||
if (e.response.data.message) {
|
||||
if (e.response?.data?.message) {
|
||||
msg += `: ${e.response.data.message}`
|
||||
} else {
|
||||
msg += `: ${e.message}`
|
||||
}
|
||||
throw new Error(msg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user