final bug fixed

This commit is contained in:
Luis Fernando Molina committed 2020-04-25 10:39:49 +02:00
1 parent 1decce05cf
commit 2b3f8a6e5f
1 file changed
+1 -1
+1 -1
View File
@@ -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.
}