Skip to content

Commit cf68d22

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Translation] Add intl-icu fallback for MessageCatalogue metadata [Validator] update Dutch translation [ErrorHandler] Do not transform file to link if it does not exist
2 parents 47a9627 + a4ba21e commit cf68d22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ErrorRenderer/HtmlErrorRenderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ private function formatFile(string $file, int $line, ?string $text = null): stri
233233
$text .= ' at line '.$line;
234234
}
235235

236+
if (!file_exists($file)) {
237+
return $text;
238+
}
239+
236240
$link = $this->fileLinkFormat->format($file, $line);
237241

238242
return \sprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', $this->escape($link), $text);

0 commit comments

Comments
 (0)