Skip to content

Commit

Permalink
exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
cevro committed Aug 16, 2023
1 parent fd245e8 commit b2c936d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public function related(string $key, ?string $throughColumn = null): TypedGroupe
if ($selection instanceof TypedGroupedSelection) {
return $selection;
}
throw new \InvalidArgumentException();
throw new \InvalidArgumentException(
'Selection must be a instance of TypedGroupedSelection'
);
}

/**
Expand Down

0 comments on commit b2c936d

Please sign in to comment.