diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-02-05 09:35:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 09:35:20 -0400 |
commit | f71136f0a03d7f3c36651918af2dc18527dd47be (patch) | |
tree | 6df9bba79901eed7cc7d1f16eba0375a21f10280 /src/util | |
parent | f0af4edfa87e9518703b7c9ab35244911f0a3ac2 (diff) | |
parent | 7c668d5cc6a107b3613e6bc1ab20c9005590b3cf (diff) |
Merge pull request #152 from hsmusic/skeleton-support
Better support "skeleton" and minimal-content wikis
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/io.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/io.js b/src/util/io.js index 6cc89b56..12e87f4d 100644 --- a/src/util/io.js +++ b/src/util/io.js @@ -12,7 +12,9 @@ export async function findFiles(dataPath, { try { files = await readdir(dataPath); } catch (error) { - throw new AggregateError([error], `Failed to list files from ${dataPath}`); + throw Object.assign( + new AggregateError([error], `Failed to list files from ${dataPath}`), + {code: error.code}); } return files |