Skip to content

Commit

Permalink
don't crash when missing log (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Mar 17, 2024
1 parent d696912 commit a15ffbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/macros.html
Expand Up @@ -17,13 +17,17 @@
{% endif -%}
{% elif run.results[example_name][platform] == "Failures" -%}
{% if run.logs[example_name] -%}
{% if run.logs[example_name][platform] -%}
<div data-bs-toggle="popover" data-bs-trigger="hover" data-bs-html=true data-bs-custom-class="log-popover"
data-bs-content='<pre>{{ run.logs[example_name][platform] }}</pre>'>
<span class="fail" style="font-size: 1.5rem;"></span>
</div>
{% else -%}
<span class="fail" style="font-size: 1.5rem;"></span>
{% endif -%}
{% else -%}
<span class="fail" style="font-size: 1.5rem;"></span>
{% endif -%}
{% elif run.results[example_name][platform] == "NoScreenshots" -%}
<span class="missing-screenshot" style="font-size: 1rem;"></span>
{% endif -%}
Expand Down

0 comments on commit a15ffbd

Please sign in to comment.