Update safeguard code, fixes #8383

main
Jordi Boggiano 5 years ago
parent 78b8c365cd
commit 8d92048c8c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -183,7 +183,7 @@ class Decisions implements \Iterator, \Countable
$previousDecision = isset($this->decisionMap[$packageId]) ? $this->decisionMap[$packageId] : null;
if ($previousDecision != 0) {
$literalString = $this->pool->literalToString($literal);
$literalString = $this->pool->literalToPrettyString($literal, []);
$package = $this->pool->literalToPackage($literal);
throw new SolverBugException(
"Trying to decide $literalString on level $level, even though $package was previously decided as ".(int) $previousDecision."."

Loading…
Cancel
Save