Skip to content

Commit

Permalink
Merge pull request #36 from swisscomeventandmedia/bugfix/exception-me…
Browse files Browse the repository at this point in the history
…ssage-multiline-replacement

BUGFIX: replace multi-line exception message
  • Loading branch information
johannessteu authored Aug 26, 2021
2 parents 6bf5d8d + 0eafed5 commit 170c4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Transform/FlowErrorTransform.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function transformResult(ExecutionResult $result): ExecutionResult
$message = $this->throwableStorage->logThrowable($previousError);

if (! $this->includeExceptionMessageInOutput) {
$message = preg_replace('/.* - See also: (.+)\.txt$/', 'Internal error ($1)', $message);
$message = preg_replace('/.* - See also: (.+)\.txt$/s', 'Internal error ($1)', $message);
}

return new Error(
Expand Down

0 comments on commit 170c4c0

Please sign in to comment.