fix: error msg

This commit is contained in:
xuhongxin 2018-06-15 16:59:16 +08:00
parent 6281859fe5
commit 0603499f56

View file

@ -1,7 +1,7 @@
// https://github.com/ElemeFE/element/blob/dev/packages/upload/src/ajax.js
function getError(action, option, xhr) {
const msg = `fail to post ${action} ${xhr.status}'`;
const msg = `fail to post ${action} ${xhr.status}`;
const err = new Error(msg);
err.status = xhr.status;
err.method = 'post';