Skip to content

Commit

Permalink
Include the previous exception on re-throw
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 24, 2020
1 parent 079370f commit a015340
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -165,7 +165,7 @@ public function validateUrlSuffix($value, DataContainer $dc)
try {
$this->recursiveValidatePages((int) $rootPage->id, $rootPage);
} catch (DuplicateAliasException $exception) {
throw new \RuntimeException($this->translator->trans('ERR.pageUrlSuffix', [$exception->getUrl()], 'contao_default'));
throw new \RuntimeException($this->translator->trans('ERR.pageUrlSuffix', [$exception->getUrl()], 'contao_default'), 0, $exception);
}

return $value;
Expand Down

0 comments on commit a015340

Please sign in to comment.