fix(discussion/shared): print quoted category slugs

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2026-04-14 14:36:21 +01:00
parent e403e82633
commit afb1b7dfea
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -28,5 +28,5 @@ func MatchCategory(input string, categories []client.DiscussionCategory) (*clien
slugs[i] = c.Slug
}
slices.Sort(slugs)
return nil, fmt.Errorf("unknown category: %q; must be one of %v", input, slugs)
return nil, fmt.Errorf("unknown category: %q; must be one of %q", input, slugs)
}