Skip to content

Commit

Permalink
OrderResolver: fix exc title not deterministic
Browse files Browse the repository at this point in the history
Fixes c184cf1
  • Loading branch information
Mikulas committed Jul 19, 2015
1 parent b2f5aa4 commit 7daddd4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Engine/OrderResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,14 @@ protected function sortFiles(array $files, array $groups)
$cmp = ($cmpA ? -1 : 1);

} else {
$names = [
"{$a->group->name}/{$a->name}",
"{$b->group->name}/{$b->name}",
];
sort($names);
throw new LogicException(sprintf(
'Unable to determine order for migrations "%s/%s" and "%s/%s".',
$a->group->name, $a->name, $b->group->name, $b->name
'Unable to determine order for migrations "%s" and "%s".',
$names[0], $names[1]
));
}
}
Expand Down

0 comments on commit 7daddd4

Please sign in to comment.