diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-02-05 09:36:50 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-02-05 09:36:50 -0400 |
commit | f36f93b702729f14021746d56b192b25ac3ed1b7 (patch) | |
tree | 5bd2de31bf42627e76feff3823b6d1ff809c8a49 /src/util | |
parent | db93dfae3aa8a627451ee643e2c02291e4f5dead (diff) | |
parent | f71136f0a03d7f3c36651918af2dc18527dd47be (diff) |
Merge branch 'staging' into preview
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 |