Merge pull request #3899 from shijianzhiwai/master

fix: error msg
This commit is contained in:
Aresn 2018-06-20 09:39:48 +08:00 committed by GitHub
commit 92c1162255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
// https://github.com/ElemeFE/element/blob/dev/packages/upload/src/ajax.js // https://github.com/ElemeFE/element/blob/dev/packages/upload/src/ajax.js
function getError(action, option, xhr) { 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); const err = new Error(msg);
err.status = xhr.status; err.status = xhr.status;
err.method = 'post'; err.method = 'post';