diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-13 11:58:20 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-13 12:06:38 +0200 |
commit | ce832dbb4d14e5d46691ed930cfef22dc5d85dd4 (patch) | |
tree | 1ac385ad1e10c57d65a212ff9a6349fd0501aa36 /doc/invocations-http-server/templates/invocation.html | |
parent | 4da202de2e291a061a7c661bda2e7f1b3dfa28b6 (diff) | |
download | justbuild-ce832dbb4d14e5d46691ed930cfef22dc5d85dd4.tar.gz |
Invocation server: add links to blob references in analysis errors
When using a serve endpoint, analysis errors my contain a reference to
a build failure on serve, shown as 'blob <hash>'. For each such blob
reference add a link offering to read this blob.
Diffstat (limited to 'doc/invocations-http-server/templates/invocation.html')
-rw-r--r-- | doc/invocations-http-server/templates/invocation.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/invocations-http-server/templates/invocation.html b/doc/invocations-http-server/templates/invocation.html index c8d77f58..50d5690a 100644 --- a/doc/invocations-http-server/templates/invocation.html +++ b/doc/invocations-http-server/templates/invocation.html @@ -158,7 +158,14 @@ Inocations {{invocation | e}} <h2>Analysis errors</h2> <ul> {% for error in analysis_errors %} - <li> <pre>{{ error | e}}</pre></li> + <li> <pre>{{ error["msg"] | e}}</pre> + {% if error["blobs"] %} + Blobs: + {% for blob in error["blobs"] %} + <a href="/blob/{{ blob | e }}"><tt>{{ blob | e }}</tt></a> + {% endfor %} + {% endif %} + </li> {% endfor %} </ul> {% else %} |