mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
Merge pull request #1645 from ether/fix/import-without-files
Don't break the whole server if an import failed because no files were u...
This commit is contained in:
commit
588fd399cd
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ exports.doImport = function(req, res, padId)
|
|||
form.parse(req, function(err, fields, files) {
|
||||
//the upload failed, stop at this point
|
||||
if(err || files.file === undefined) {
|
||||
console.warn("Uploading Error: " + err.stack);
|
||||
if(err) console.warn("Uploading Error: " + err.stack);
|
||||
callback("uploadFailed");
|
||||
}
|
||||
//everything ok, continue
|
||||
|
|
Loading…
Reference in a new issue