In case the hint of the HintException is empty we better use the exception message

This commit is contained in:
Thomas Müller 2016-01-27 10:08:21 +01:00
parent 1594371c8c
commit a067355a98
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ class HintException extends \Exception {
}
public function getHint() {
if (empty($this->hint)) {
return $this->message;
}
return $this->hint;
}
}