diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-27 10:08:21 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-27 10:08:21 +0100 |
commit | a067355a9886203f264ce94b0ecccd2fd4ba7351 (patch) | |
tree | d54e3f6cfe22a6a5af4ffa42bef4e54cf5ffcf0f | |
parent | 1594371c8c0124af2469bd70b9b917bfd845ae19 (diff) | |
download | nextcloud-server-a067355a9886203f264ce94b0ecccd2fd4ba7351.tar.gz nextcloud-server-a067355a9886203f264ce94b0ecccd2fd4ba7351.zip |
In case the hint of the HintException is empty we better use the exception message
-rw-r--r-- | lib/private/hintexception.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/hintexception.php b/lib/private/hintexception.php index f673ac82ace..7c4754a92ef 100644 --- a/lib/private/hintexception.php +++ b/lib/private/hintexception.php @@ -38,6 +38,9 @@ class HintException extends \Exception { } public function getHint() { + if (empty($this->hint)) { + return $this->message; + } return $this->hint; } } |