mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-31 12:32:54 +00:00
Errorf -> fmt.Errorf
This commit is contained in:
+2
-2
@@ -151,7 +151,7 @@ func RunProcess(wait bool, label string, execPath string, args []string, input s
|
||||
existing := barak.processes[label]
|
||||
if existing != nil {
|
||||
barak.mtx.Unlock()
|
||||
return nil, Errorf("Process already exists: %v", label)
|
||||
return nil, fmt.Errorf("Process already exists: %v", label)
|
||||
}
|
||||
|
||||
// Otherwise, create one.
|
||||
@@ -173,7 +173,7 @@ func StopProcess(label string, kill bool) (*ResponseStopProcess, error) {
|
||||
barak.mtx.Unlock()
|
||||
|
||||
if proc == nil {
|
||||
return nil, Errorf("Process does not exist: %v", label)
|
||||
return nil, fmt.Errorf("Process does not exist: %v", label)
|
||||
}
|
||||
|
||||
err := pcm.Stop(proc, kill)
|
||||
|
||||
@@ -27,7 +27,7 @@ func GetNonce(remote string) uint64 {
|
||||
response := btypes.ResponseStatus{}
|
||||
_, err = rpc.Call(remote, "status", Arr(), &response)
|
||||
if err != nil {
|
||||
panic(Fmt("Error fetching nonce from remote %v: %v", remote, err))
|
||||
Exit(Fmt("Error fetching nonce from remote %v: %v", remote, err))
|
||||
}
|
||||
return response.Nonce
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user