8000 Merge remote branch 'Seldaek/datetime' · beenalee/symfony@0007702 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0007702

Browse files
committed
Merge remote branch 'Seldaek/datetime'
* Seldaek/datetime: [Form] Use proper transformation exception in case of failure
2 parents 9e23189 + d11b7ba commit 0007702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function reverseTransform($value)
8181

8282
return $dateTime;
8383
} catch (\Exception $e) {
84-
throw new \InvalidArgumentException('Expected a valid date string. ' . $e->getMessage(), 0, $e);
84+
throw new TransformationFailedException('Expected a valid date string. ' . $e->getMessage(), 0, $e);
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)
0