From 092aa32250420cc3f4d7e22f5cb93a6cf26ddbd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 8 Aug 2018 13:44:17 +0200 Subject: [PATCH] Add exception chaining to DateFormField::saveValueFormat --- .../files/lib/system/form/builder/field/DateFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1