mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Fix the scanning error display
This commit is contained in:
parent
e275a263bb
commit
865dd429f3
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ export default {
|
|||
} catch (err) {
|
||||
let msg = 'Unknown error.'
|
||||
|
||||
if (err.status === 422) {
|
||||
msg = parseValidationError(err.responseJSON)[0]
|
||||
if (err.response.status === 422) {
|
||||
msg = parseValidationError(err.response.data)[0]
|
||||
}
|
||||
|
||||
hideOverlay()
|
||||
|
|
Loading…
Reference in a new issue