Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
[#3632] throw previous exception
Browse files Browse the repository at this point in the history
- Incorporate feedback from @marc-mabe
- Also: use $e as exception (for consistency)
  • Loading branch information
weierophinney committed Mar 25, 2013
1 parent cdfd752 commit 794ab09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Filter/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function filter($value)
{
try {
$result = $this->normalizeDateTime($value);
} catch (\Exception $ex) {
} catch (\Exception $e) {
// DateTime threw an exception, an invalid date string was provided
throw new Exception\InvalidArgumentException($ex);
throw new Exception\InvalidArgumentException('Invalid date string provided', $e->getCode(), $e);
}

return $result;
Expand Down

0 comments on commit 794ab09

Please sign in to comment.