ImportHandler: anticipated the error checking
No functional changes.
This commit is contained in:
parent
4c2ad68b69
commit
2b8e45e2bd
1 changed files with 6 additions and 3 deletions
|
@ -205,11 +205,14 @@ exports.doImport = function(req, res, padId)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (isAscii) {
|
||||
callback();
|
||||
} else {
|
||||
|
||||
if (!isAscii) {
|
||||
callback("uploadFailed");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue