Skip to content

Commit

Permalink
Use numerical formatting when printing F3 CLI error message
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 committed Nov 28, 2024
1 parent bb7e62d commit 1a2e456
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 1a2e456

Please sign in to comment.