mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-05-17 15:20:37 +08:00
fix: use numerical formatting when printing F3 CLI error message (#12739)
Use numerical format to print actor IDs not found. Otherwise, `%q` will print special character.
This commit is contained in:
@ -287,7 +287,7 @@ var f3SubCmdPowerTable = &cli.Command{
|
||||
seenIDs[actorID] = struct{}{}
|
||||
scaled, key := pt.Get(actorID)
|
||||
if key == nil {
|
||||
return fmt.Errorf("actor ID %q not found in power table", actorID)
|
||||
return fmt.Errorf("actor ID %d not found in power table", actorID)
|
||||
}
|
||||
result.ScaledSum += scaled
|
||||
}
|
||||
|
Reference in New Issue
Block a user