[LNT] r307447 - Make LNT client print server's error messages

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 16:48:28 PDT 2017


> -{% block body %}
> +<!DOCTYPE html>
> +<html lang="en">
> +<head>
> +    <meta charset="UTF-8"/>
> 
> +    <link href="{{ url_for('.static', filename='bootstrap/css/bootstrap.min.css')
> +                }}" rel="stylesheet" media="screen"/>
> +    <link href="{{ url_for('.static', filename='bootstrap/css/bootstrap-responsive.min.css')
> +                }}" rel="stylesheet"/>
> +</head>
> +<body>
> +
> +<h1>LNT Error</h1>
> <div class="alert alert-error">
> -Error: {{ message }}
> +{{ message }}
> </div>
> 
> -{% endblock %}

That looks odd, the layout template should already supply the surrounding <html> or <head> parts (or they should go into different {% block %}s.

- Matthias



More information about the llvm-commits mailing list