Skip to content

Commit a455e37

Browse files
author
Olga Kopylova
committed
MAGETWO-51881: Widget of type Catalog Events Carousel is not displayed in page
- added more verbosity to exception
1 parent bd27434 commit a455e37

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Stdlib/DateTime/Filter

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Filter/DateTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function filter($value)
4545
$dateTime = new \DateTime($value);
4646
return $dateTime->format('Y-m-d H:i:s');
4747
} catch (\Exception $e) {
48-
throw new \Exception((string)__("Invalid input datetime format of value '%1'", $value));
48+
throw new \Exception((string)__("Invalid input datetime format of value '%1': '%2'", $value, $e->getMessage()));
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)