Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/solver/solve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestNotSatisfiableError(t *testing.T) {
Constraint: constraint.Mandatory(),
},
},
String: fmt.Sprintf("constraints not satisfiable: %s",
String: fmt.Sprintf("constraints not satisfiable:\n%s",
constraint.Mandatory().String("a")),
},
{
Expand All @@ -80,7 +80,7 @@ func TestNotSatisfiableError(t *testing.T) {
Constraint: constraint.Prohibited(),
},
},
String: fmt.Sprintf("constraints not satisfiable: %s, %s",
String: fmt.Sprintf("constraints not satisfiable:\n%s\n%s",
constraint.Mandatory().String("a"), constraint.Prohibited().String("b")),
},
} {
Expand Down
2 changes: 1 addition & 1 deletion pkg/deppy/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (e NotSatisfiable) Error() string {
for i, a := range e {
s[i] = a.String()
}
return fmt.Sprintf("%s: %s", msg, strings.Join(s, ", "))
return fmt.Sprintf("%s:\n%s", msg, strings.Join(s, "\n"))
}

// Identifier values uniquely identify particular Variables within
Expand Down