Skip to content

Commit

Permalink
Fix syntax error. Update Exception to more specific UnexpectedValueEx…
Browse files Browse the repository at this point in the history
…ception.
  • Loading branch information
Conner Saeli committed Feb 9, 2024
1 parent 932ace1 commit 21c3d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regression/lib/Controllers/UsageChartsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function phash($type, $imageData)
fclose($pipes[2]);
$retval = proc_close($process);
if (strlen($err) > 0 || $retval !== 0) {
throw new Exception("imagehash returned $retval stderr='$err'");
throw new \UnexpectedValueException("imagehash returned $retval stderr='$err'");
}
} else {
$out = sha1($imageData);
Expand Down

0 comments on commit 21c3d81

Please sign in to comment.