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
This commit is contained in:
Panagiotis Papadopoulos 2025-03-12 09:52:42 +01:00
parent b730ca0033
commit d7aedfbd36

View File

@ -105,4 +105,5 @@ try {
} catch(err) {
console.error("Error during copy:", err)
process.exit(1)
}