Skip to content

Commit

Permalink
fix: use numerical formatting when printing F3 CLI error message (#12739
Browse files Browse the repository at this point in the history
)

Use numerical format to print actor IDs not found. Otherwise, `%q` will
print special character.
  • Loading branch information
masih authored Nov 29, 2024
1 parent 64736ea commit e994e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e994e95

Please sign in to comment.