Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug #17305 No checking to see if a data file exists - bad error handing

  • Loading branch information...
commit 288370af6312735de034e92ca6c405dfe986983b 1 parent dd463d9
@CloCkWeRX CloCkWeRX authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Image/GIS2.php
View
5 Image/GIS2.php
@@ -129,6 +129,11 @@ public function Image_GIS($parameters = array()) {
* @access public
*/
public function addDataFile($dataFile, $color) {
+ if (!file_exists($dataFile)) {
+ throw new InvalidArgumentException(
+ "Data file '%s' does not exist.", $dataFile
+ );
+ }
return $this->parser->addDataFile($dataFile, $color);
}
Please sign in to comment.
Something went wrong with that request. Please try again.