From d7aedfbd36b2f774c24c89d51323014f2d2d40c7 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 12 Mar 2025 09:52:42 +0100 Subject: [PATCH] build(copy-dist): exit on any caught error to make sure copy-dist fails during CI if any error occurs if we don't exit, it will just log the issue - however we *want* it to fail it there is an error, so that it doesn't continue in the CI alternative would be to rethrow the error, but then we'd print the error into the logs twice :-) closes https://github.com/TriliumNext/Notes/issues/1413 --- bin/copy-dist.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 473896507..03b0c751b 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -105,4 +105,5 @@ try { } catch(err) { console.error("Error during copy:", err) + process.exit(1) }