diff --git a/cli/chain.go b/cli/chain.go index cfe9b6c1c43..0c25a881c6b 100644 --- a/cli/chain.go +++ b/cli/chain.go @@ -875,7 +875,7 @@ func (ht *apiIpldStore) Get(ctx context.Context, c cid.Cid, out interface{}) err return nil } - return fmt.Errorf("Object does not implement CBORUnmarshaler") + return fmt.Errorf("object does not implement CBORUnmarshaler") } func (ht *apiIpldStore) Put(ctx context.Context, v interface{}) (cid.Cid, error) { diff --git a/cli/spcli/actor.go b/cli/spcli/actor.go index e75c15180f8..41926fe83cf 100644 --- a/cli/spcli/actor.go +++ b/cli/spcli/actor.go @@ -820,7 +820,7 @@ func ActorProposeChangeWorkerCmd(getActor ActorAddressGetter) *cli.Command { return err } if mi.NewWorker != newAddr { - return fmt.Errorf("Proposed worker address change not reflected on chain: expected '%s', found '%s'", na, mi.NewWorker) + return fmt.Errorf("proposed worker address change not reflected on chain: expected '%s', found '%s'", na, mi.NewWorker) } _, _ = fmt.Fprintf(cctx.App.Writer, "Worker key change to %s successfully sent, change happens at height %d.\n", na, mi.WorkerChangeEpoch) @@ -1058,7 +1058,7 @@ func ActorConfirmChangeWorkerCmd(getActor ActorAddressGetter) *cli.Command { return err } if mi.Worker != newAddr { - return fmt.Errorf("Confirmed worker address change not reflected on chain: expected '%s', found '%s'", newAddr, mi.Worker) + return fmt.Errorf("confirmed worker address change not reflected on chain: expected '%s', found '%s'", newAddr, mi.Worker) } return nil diff --git a/cmd/lotus-shed/actor.go b/cmd/lotus-shed/actor.go index ca2c52fa94c..f64a33201ab 100644 --- a/cmd/lotus-shed/actor.go +++ b/cmd/lotus-shed/actor.go @@ -859,7 +859,7 @@ var actorProposeChangeWorker = &cli.Command{ return err } if mi.NewWorker != newAddr { - return fmt.Errorf("Proposed worker address change not reflected on chain: expected '%s', found '%s'", na, mi.NewWorker) + return fmt.Errorf("proposed worker address change not reflected on chain: expected '%s', found '%s'", na, mi.NewWorker) } _, _ = fmt.Fprintf(cctx.App.Writer, "Worker key change to %s successfully proposed.\n", na) @@ -980,7 +980,7 @@ var actorConfirmChangeWorker = &cli.Command{ return err } if mi.Worker != newAddr { - return fmt.Errorf("Confirmed worker address change not reflected on chain: expected '%s', found '%s'", newAddr, mi.Worker) + return fmt.Errorf("confirmed worker address change not reflected on chain: expected '%s', found '%s'", newAddr, mi.Worker) } return nil diff --git a/cmd/lotus-shed/keyinfo.go b/cmd/lotus-shed/keyinfo.go index 15b584f3d8b..d6c0f499c8b 100644 --- a/cmd/lotus-shed/keyinfo.go +++ b/cmd/lotus-shed/keyinfo.go @@ -113,7 +113,7 @@ var keyinfoVerifyCmd = &cli.Command{ } if len(list) != 1 { - return fmt.Errorf("Unexpected number of keys, expected 1, found %d", len(list)) + return fmt.Errorf("unexpected number of keys, expected 1, found %d", len(list)) } name, err := base32.RawStdEncoding.DecodeString(fileName) @@ -127,7 +127,7 @@ var keyinfoVerifyCmd = &cli.Command{ break default: - return fmt.Errorf("Unknown keytype %s", keyInfo.Type) + return fmt.Errorf("unknown keytype %s", keyInfo.Type) } return nil diff --git a/cmd/lotus-shed/math.go b/cmd/lotus-shed/math.go index 09776d4e76f..1d9f420a4a0 100644 --- a/cmd/lotus-shed/math.go +++ b/cmd/lotus-shed/math.go @@ -100,7 +100,7 @@ var mathSumCmd = &cli.Command{ case "raw": fmt.Printf("%s\n", val) default: - return fmt.Errorf("Unknown format") + return fmt.Errorf("unknown format") } return nil diff --git a/tools/stats/influx/influx.go b/tools/stats/influx/influx.go index 6c589fd575d..c4162a3baf8 100644 --- a/tools/stats/influx/influx.go +++ b/tools/stats/influx/influx.go @@ -115,11 +115,11 @@ func GetLastRecordedHeight(influx client.Client, database string) (int64, error) } if len(res.Results) == 0 { - return 0, fmt.Errorf("No results found for last recorded height") + return 0, fmt.Errorf("no results found for last recorded height") } if len(res.Results[0].Series) == 0 { - return 0, fmt.Errorf("No results found for last recorded height") + return 0, fmt.Errorf("no results found for last recorded height") } height, err := (res.Results[0].Series[0].Values[0][1].(json.Number)).Int64() diff --git a/tools/stats/ipldstore/ipldstore.go b/tools/stats/ipldstore/ipldstore.go index 2b96fb0cd13..8fb7a3dc3b3 100644 --- a/tools/stats/ipldstore/ipldstore.go +++ b/tools/stats/ipldstore/ipldstore.go @@ -84,7 +84,7 @@ func (ht *ApiIpldStore) Get(ctx context.Context, c cid.Cid, out interface{}) err return nil } - return fmt.Errorf("Object does not implement CBORUnmarshaler") + return fmt.Errorf("object does not implement CBORUnmarshaler") } func (ht *ApiIpldStore) Put(ctx context.Context, v interface{}) (cid.Cid, error) {