Error throw fix

pierotofy-patch-1
Piero Toffanin 2020-08-26 15:13:00 -04:00 zatwierdzone przez GitHub
rodzic fd929e2766
commit 7043eafe99
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -259,7 +259,7 @@ module.exports = {
if (req.files && req.files.length > 0) {
fs.stat(destPath, (err, stat) => {
if (err && err.code === 'ENOENT') cb();
else cb(new Error(`Directory exists (should not have happened: ${err.code})`));
else cb(new Error(`Directory exists (should not have happened)`));
});
} else {
cb();