[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb] 63/66: Exit build if the frontend build script fails



This is an automated email from the git hooks/post-receive script.

meskio pushed a commit to branch main
in repository bridgedb.

commit 04aef7aaeb41f5d94c4059b5af305f02e9f6b083
Author: kez <kez@xxxxxxxxxxxxxx>
AuthorDate: Wed Jul 20 11:32:45 2022 -0700

    Exit build if the frontend build script fails
---
 setup.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.py b/setup.py
index 4765661..90868a8 100644
--- a/setup.py
+++ b/setup.py
@@ -172,6 +172,10 @@ def build_lektor_frontend() -> None:
         ['/usr/bin/env', 'bash', 'frontend/build.sh', 'prod'],
     )
     frontend_build.wait()
+    
+    if frontend_build.returncode != 0:
+        raise Exception(f'Frontend build script failed with non-zero exit code: {frontend_build.returncode}')
+
     template_path = os.path.join(
         'bridgedb',
         'distributors',

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits