From 09d852c78d16e5026a6d3d8f08f2cead4cae5f36 Mon Sep 17 00:00:00 2001 From: Peter Leitzen <pleitzen@gitlab.com> Date: Mon, 19 Feb 2024 10:48:06 +0100 Subject: [PATCH] Don't swallow exceptions when checking GraphQL types If the check script fails having a full stacktrace is beneficial for debugging purposes. In case of an error both versions of the script exit with error code 1. --- scripts/frontend/graphql_possible_types_extraction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/frontend/graphql_possible_types_extraction.js b/scripts/frontend/graphql_possible_types_extraction.js index 61f783086e7a3..fdc258e3210ff 100755 --- a/scripts/frontend/graphql_possible_types_extraction.js +++ b/scripts/frontend/graphql_possible_types_extraction.js @@ -65,5 +65,6 @@ Options: main().catch((error) => { console.warn(error.message); + console.warn(error.stack); process.exitCode = 1; }); -- GitLab