mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Use fmt.Errorf
This commit is contained in:
parent
f39afd5df1
commit
0a22d23f6d
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ func LoadECDSA(file string) (*ecdsa.PrivateKey, error) {
|
|||
return nil, err
|
||||
}
|
||||
if len(buf) != 64 {
|
||||
return nil, errors.New(fmt.Sprintf("expected 64 hexa characters, got %v", len(buf)))
|
||||
return nil, fmt.Errorf("expected 64 hexa characters, got %v", len(buf))
|
||||
}
|
||||
|
||||
key, err := hex.DecodeString(string(buf))
|
||||
|
|
|
|||
Loading…
Reference in a new issue