More clear error message when a validator exit was rejected

This commit is contained in:
Zahary Karadjov 2021-01-15 19:39:45 +02:00
parent a0689e4237
commit c8c819359c
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 3 additions and 2 deletions

View File

@ -386,7 +386,7 @@ type
rpcUrlForExit* {.
name: "rpc-url"
defaultValue: parseUri("wss://localhost:" & $defaultEth2RpcPort)
defaultValue: parseUri("http://localhost:" & $defaultEth2RpcPort)
desc: "URL of the beacon node JSON-RPC service" }: Uri
exitAtEpoch* {.

View File

@ -1272,7 +1272,8 @@ proc handleValidatorExitCommand(config: BeaconNodeConf) {.async.} =
echo "The voluntary exit was not submitted successfully. Please try again."
quit 1
except CatchableError as err:
fatal "Failed to send the signed exit message to the beacon node RPC"
fatal "Failed to send the signed exit message to the beacon node RPC",
err = err.msg
quit 1
programMain: