From 7c63f10b2cfed80f2718c043d43170ed1656581b Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 4 Dec 2020 12:48:54 +0100 Subject: [PATCH] Fixed invalid error handling within the file transfer browser --- shared/js/file/FileManager.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/js/file/FileManager.tsx b/shared/js/file/FileManager.tsx index 6bb3a848..39709a4a 100644 --- a/shared/js/file/FileManager.tsx +++ b/shared/js/file/FileManager.tsx @@ -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"));