diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-30 15:32:06 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-30 15:32:06 -0400 |
commit | 2fcfbd99e0dedeb2b92d71bdc35550d12392e1f1 (patch) | |
tree | becdad43ed95ef33313df6a760858898484782e7 /src/write/build-modes | |
parent | 9cc5d3818a028005557608a98bcc00fc8f34798d (diff) |
write: static-build: don't let errors slip through writeSymlinks
Fixes #128.
Diffstat (limited to 'src/write/build-modes')
-rw-r--r-- | src/write/build-modes/static-build.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index 33eafeac..0a92ef50 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -464,6 +464,8 @@ function writeSymlinks({ } catch (error) { if (error.code === 'EPERM') { await symlink(path.resolve(directory), file, 'junction'); + } else { + throw error; } } } |