Skip to content

Commit e994e95

Browse files
authored
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.
1 parent 64736ea commit e994e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/f3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ var f3SubCmdPowerTable = &cli.Command{
287287
seenIDs[actorID] = struct{}{}
288288
scaled, key := pt.Get(actorID)
289289
if key == nil {
290-
return fmt.Errorf("actor ID %q not found in power table", actorID)
290+
return fmt.Errorf("actor ID %d not found in power table", actorID)
291291
}
292292
result.ScaledSum += scaled
293293
}

0 commit comments

Comments
 (0)