@@ -1891,11 +1891,11 @@ func MakeBeaconLightConfig(ctx *cli.Context) bparams.ClientConfig {
1891
1891
if c , err := hexutil .Decode (ctx .String (BeaconGenesisRootFlag .Name )); err == nil && len (c ) <= 32 {
1892
1892
copy (config .GenesisValidatorsRoot [:len (c )], c )
1893
1893
} else {
1894
- Fatalf ("Invalid hex string" , "beacon.genesis.gvroot" , ctx . String ( BeaconGenesisRootFlag .Name ), "error" , err )
1894
+ Fatalf ("Could not parse --%s: %v" , BeaconGenesisRootFlag .Name , err )
1895
1895
}
1896
1896
configFile := ctx .String (BeaconConfigFlag .Name )
1897
1897
if err := config .ChainConfig .LoadForks (configFile ); err != nil {
1898
- Fatalf ("Could not load beacon chain config" , "file" , configFile , "error" , err )
1898
+ Fatalf ("Could not load beacon chain config '%s': %v" , configFile , err )
1899
1899
}
1900
1900
log .Info ("Using custom beacon chain config" , "file" , configFile )
1901
1901
} else {
@@ -1912,17 +1912,17 @@ func MakeBeaconLightConfig(ctx *cli.Context) bparams.ClientConfig {
1912
1912
// are saved to the specified file.
1913
1913
if ctx .IsSet (BeaconCheckpointFileFlag .Name ) {
1914
1914
if _ , err := config .SetCheckpointFile (ctx .String (BeaconCheckpointFileFlag .Name )); err != nil {
1915
- Fatalf ("Could not load beacon checkpoint file" , "beacon.checkpoint.file" , ctx .String (BeaconCheckpointFileFlag .Name ), "error" , err )
1915
+ Fatalf ("Could not load beacon checkpoint file '%s': %v" , ctx .String (BeaconCheckpointFileFlag .Name ), err )
1916
1916
}
1917
1917
}
1918
1918
if ctx .IsSet (BeaconCheckpointFlag .Name ) {
1919
1919
hex := ctx .String (BeaconCheckpointFlag .Name )
1920
1920
c , err := hexutil .Decode (hex )
1921
1921
if err != nil {
1922
- Fatalf ("Invalid hex string" , "beacon.checkpoint" , hex , "error" , err )
1922
+ Fatalf ("Could not parse --%s: %v" , BeaconCheckpointFlag . Name , err )
1923
1923
}
1924
1924
if len (c ) != 32 {
1925
- Fatalf ("Invalid hex string length" , "beacon.checkpoint" , hex , "length" , len (c ))
1925
+ Fatalf ("Could not parse --%s: invalid length %d, want 32" , BeaconCheckpointFlag . Name , len (c ))
1926
1926
}
1927
1927
copy (config .Checkpoint [:len (c )], c )
1928
1928
}
0 commit comments