Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions cli/spcli/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-shed/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-shed/keyinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/lotus-shed/math.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/stats/influx/influx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tools/stats/ipldstore/ipldstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down