Skip to content

Commit

Permalink
contracts-bedrock: better error message (#12148)
Browse files Browse the repository at this point in the history
The build fails when jq is not installed with
a mysterious error message, so improve the error message.
This will help debugging for new contributors.
  • Loading branch information
tynes authored and maurelian committed Sep 27, 2024
1 parent 4933144 commit 6574aa6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ CONTRACTS_BASE=$(dirname "$(dirname "$SCRIPT_DIR")")
MONOREPO_BASE=$(dirname "$(dirname "$CONTRACTS_BASE")")
VERSIONS_FILE="${MONOREPO_BASE}/versions.json"

if ! command -v jq &> /dev/null
then
# shellcheck disable=SC2006
echo "Please install jq" >&2
exit 1
fi

if ! command -v forge &> /dev/null
then
# shellcheck disable=SC2006
Expand Down

0 comments on commit 6574aa6

Please sign in to comment.