From 2b3f8a6e5fdc1e4f3b3937739fcef32f78ec9d94 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 25 Apr 2020 10:39:49 +0200 Subject: [PATCH] final bug fixed --- TaskServer/FileStorage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskServer/FileStorage.js b/TaskServer/FileStorage.js index 199183aa3..30b69242e 100644 --- a/TaskServer/FileStorage.js +++ b/TaskServer/FileStorage.js @@ -463,7 +463,7 @@ exports.newFileStorage = function newFileStorage(logger, host, port) { function onEnd() { let fileContent = Buffer.concat(chunks).toString('utf8') let err = null - if (fileContent === 'The specified key does not exist.') { + if (fileContent.indexOf('does not exist') >= 0) { err = { code: "ENOENT" // This is how fs would have returned upon this situation. }