Fix the scanning error display

This commit is contained in:
Phan An 2017-05-29 14:29:48 +01:00
parent e275a263bb
commit 865dd429f3

View file

@ -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()