Skip to content

Commit

Permalink
Different error handling for Prysm (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Jul 19, 2024
1 parent 3025852 commit 7763d94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vc-utils/keymanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,13 @@ and secrets directories into .eth/validator_keys instead."
call_api
case $__code in
200) ;;
400) echo "The pubkey was formatted wrong. Error: $(echo "$__result" | jq -r '.message')"; exit 1;;
400)
if [ -z "${PRYSM:+x}" ]; then
echo "The pubkey was formatted wrong. Error: $(echo "$__result" | jq -r '.message')"; exit 1
else
echo "The pubkey was formatted wrong. Error: $(echo "$__result" | jq -r '.')"; exit 1
fi
;;
401) echo "No authorization token found. This is a bug. Error: $(echo "$__result" | jq -r '.message')"; exit 70;;
403) echo "The authorization token is invalid. Error: $(echo "$__result" | jq -r '.message')"; exit 1;;
500) echo "Internal server error. Error: $(echo "$__result" | jq -r '.message')"; exit 1;;
Expand Down

0 comments on commit 7763d94

Please sign in to comment.