Skip to content

Commit

Permalink
doctor: fix format string for empty schema (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Nov 3, 2022
1 parent 8144406 commit 527915c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cli/mcap/cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (doctor *mcapDoctor) Examine() error {

if schema.Encoding == "" {
if len(schema.Data) == 0 {
doctor.warn("Schema with ID: %d, Name: %d has empty Encoding and Data fields", schema.ID, schema.Name)
doctor.warn("Schema with ID: %d, Name: %s has empty Encoding and Data fields", schema.ID, schema.Name)
} else {
doctor.error("Schema with ID: %d has empty Encoding but Data contains: %s", schema.ID, string(schema.Data))
}
Expand Down

0 comments on commit 527915c

Please sign in to comment.