Fixed invalid error handling within the file transfer browser

canary
WolverinDEV 2020-12-04 12:48:54 +01:00
parent fbb8afcc9e
commit 7c63f10b2c
1 changed files with 2 additions and 1 deletions

View File

@ -458,7 +458,8 @@ export class FileManager {
});
infos[0]["return_code"] = returnCode;
return this.connectionHandler.serverConnection.send_command("ftgetfileinfo", infos, { flagset: ["as-list"] }).then(cmdResult => {
return this.connectionHandler.serverConnection.send_command("ftgetfileinfo", infos, { flagset: ["as-list"], process_result: false })
.catch(error => Promise.resolve(error)).then(cmdResult => {
const bulks = cmdResult.getBulks();
if(bulks.length != files.length) {
return Promise.reject(tr("response bulk miss match"));