vue-upload icon indicating copy to clipboard operation
vue-upload copied to clipboard

How to get error message on onError

Open movepixels opened this issue 6 years ago • 0 comments
trafficstars

What is the way to get error messages that the script calls?

I can get it like:

error.errors[0].msg

But there must be an easier way.

onError(error) {
        console.log(error.errors[0].msg, 'onError')
        // vm.uploadErrors() I need a simple way to pass errors to my error handler
}

Also is there a way to customize the error messages?

Thanks,

Dave

movepixels avatar Jun 25 '19 21:06 movepixels