Skip to content

Commit 8369bf5

Browse files
committed
fix spacing in error message building
Signed-off-by: everettraven <[email protected]>
1 parent 53116f6 commit 8369bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/resolve/catalog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (rei resolutionError) Error() string {
202202
}
203203

204204
if len(rei.Channels) > 0 {
205-
sb.WriteString(fmt.Sprintf("in channels %v", rei.Channels))
205+
sb.WriteString(fmt.Sprintf("in channels %v ", rei.Channels))
206206
}
207207

208208
matchedCatalogs := []string{}
@@ -211,7 +211,7 @@ func (rei resolutionError) Error() string {
211211
}
212212
slices.Sort(matchedCatalogs) // sort for consistent error message
213213
if len(matchedCatalogs) > 1 {
214-
sb.WriteString(fmt.Sprintf("in multiple catalogs with the same priority %v", matchedCatalogs))
214+
sb.WriteString(fmt.Sprintf("in multiple catalogs with the same priority %v ", matchedCatalogs))
215215
}
216216

217217
return strings.TrimSpace(sb.String())

0 commit comments

Comments
 (0)