From: Tim Düsterhus Date: Wed, 8 Aug 2018 11:44:17 +0000 (+0200) Subject: Add exception chaining to DateFormField::saveValueFormat X-Git-Tag: 5.2.0_Alpha_1~364^2~100 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=092aa32250420cc3f4d7e22f5cb93a6cf26ddbd4;p=GitHub%2FWoltLab%2FWCF.git Add exception chaining to DateFormField::saveValueFormat --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php index 858230e1f4..f73ff8c97e 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/DateFormField.class.php @@ -106,7 +106,7 @@ class DateFormField extends AbstractFormField { \DateTime::createFromFormat($saveValueFormat, TIME_NOW); } catch (\Exception $e) { - throw new \InvalidArgumentException("Invalid date time format '{$saveValueFormat}'."); + throw new \InvalidArgumentException("Invalid date time format '{$saveValueFormat}'.", 0, $e); } $this->__saveValueFormat = $saveValueFormat;