You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2026/02/11 16:40:38 UTC
(couchdb) 03/03: fail build_js if compile step fails
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch build-dev-improvements
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 067330ecb8ce020a5a5e907e93b4fd75d75839a7
Author: Robert Newson <rn...@apache.org>
AuthorDate: Wed Feb 11 16:18:34 2026 +0000
fail build_js if compile step fails
---
src/couch_quickjs/build_js.escript | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch_quickjs/build_js.escript b/src/couch_quickjs/build_js.escript
index 1da48ee87..49aec0f1a 100644
--- a/src/couch_quickjs/build_js.escript
+++ b/src/couch_quickjs/build_js.escript
@@ -74,7 +74,7 @@ compile_bytecode(Js, CBytecode) ->
Tmp = CBytecode ++ ".tmp",
{ok, Cwd} = file:get_cwd(),
CompileCmd = Cwd ++ "/quickjs/qjsc -c -N bytecode -o c_src/" ++ Tmp ++ " priv/" ++ Js,
- os:cmd(CompileCmd),
+ os:cmd(CompileCmd, #{exception_on_failure => true}),
Changed = cp_if_different("c_src/" ++ Tmp, "c_src/" ++ CBytecode),
rm("c_src/" ++ Tmp),
Changed.