From 654498d8369d1f60336b50a5cc06b9060e773927 Mon Sep 17 00:00:00 2001 From: Pablo Klaschka Date: Sun, 28 Oct 2018 11:10:17 +0100 Subject: [PATCH] Update storage-helper.js --- storage-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-helper.js b/storage-helper.js index bc13d1a..2f9cf2b 100644 --- a/storage-helper.js +++ b/storage-helper.js @@ -22,7 +22,7 @@ class storageHelper { throw new Error('Storage file storage.json was not a file.'); } - } catch { + } catch (e) { const file = await dataFolder.createEntry('data.json', {type: storage.types.file, overwrite: true}); if (file.isFile) { await file.write('{}', {append: false});