Skip to content

Commit

Permalink
Adds Exception for unset PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Apr 5, 2017
1 parent e635615 commit 6254048
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Ghostscript.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ public static function setGsPath($path = null)
*/
public static function getGsPath()
{
if (! self::$PATH) {
throw new \InvalidArgumentException('No GS-Path set');
}
return self::$PATH;
}

Expand Down

0 comments on commit 6254048

Please sign in to comment.