In case the hint of the HintException is empty we better use the exception message
This commit is contained in:
parent
1594371c8c
commit
a067355a98
|
@ -38,6 +38,9 @@ class HintException extends \Exception {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHint() {
|
public function getHint() {
|
||||||
|
if (empty($this->hint)) {
|
||||||
|
return $this->message;
|
||||||
|
}
|
||||||
return $this->hint;
|
return $this->hint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue