bug fix
This commit is contained in:
1 parent
466abf5b49
commit
106256ca64
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -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.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user