Dudes need better error messages

This commit is contained in:
Thomas Gelf 2014-03-04 14:08:44 +00:00
parent bb9bc39522
commit 7d22994d80
1 changed files with 3 additions and 1 deletions

View File

@ -441,7 +441,9 @@ abstract class IdoQuery extends Query
protected function conflictsWithVirtualTable($name)
{
if ($this->hasJoinedVirtualTable($name)) {
throw new ProgrammingError('Great work, dude');
throw new ProgrammingError(
sprintf('IDO query virtual table conflict with "%s"', $name)
);
}
return $this;
}