From 2fcfbd99e0dedeb2b92d71bdc35550d12392e1f1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 30 Jan 2024 15:32:06 -0400 Subject: write: static-build: don't let errors slip through writeSymlinks Fixes #128. --- src/write/build-modes/static-build.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } } } -- cgit 1.3.0-6-gf8a5