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:
Masih H. Derkani
2024-11-29 04:47:50 +00:00
committed by GitHub
parent 64736eaab0
commit e994e9566c

View File

@ -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
}