Skip to content

Commit

Permalink
Skip generating link for backtrace record with missing file, fixes #967
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed May 13, 2019
1 parent f2a47c0 commit e86af6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Resources/views/Collector/db.html.twig
Expand Up @@ -289,10 +289,14 @@
<td>
<span class="text-small">
{% set line_number = trace.line|default(1) %}
<a href="{{ trace.file|file_link(line_number) }}">
{% if trace.file is defined %}
<a href="{{ trace.file|file_link(line_number) }}">
{% endif %}
{{- trace.class|default ~ (trace.class is defined ? trace.type|default('::')) -}}
<span class="status-warning">{{ trace.function }}</span>
</a>
{% if trace.file is defined %}
</a>
{% endif %}
(line {{ line_number }})
</span>
</td>
Expand Down

0 comments on commit e86af6c

Please sign in to comment.