feat: global error handler with template rendering
Some checks are pending
Cadoles/bouncer/pipeline/pr-develop Build started...
Some checks are pending
Cadoles/bouncer/pipeline/pr-develop Build started...
This commit is contained in:
@ -76,14 +76,26 @@
|
||||
margin-top: 2em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.stacktrace {
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
background-color: #dca0a0;
|
||||
padding: 0 10px;
|
||||
border-radius: 5px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="card">
|
||||
<h2 class="title">{{ $title }}</h2>
|
||||
<h2 class="title">⚠ {{ $title }}</h2>
|
||||
{{ if .Debug }}
|
||||
<pre>{{ .Err }}</pre>
|
||||
<h3>Stack Trace</h3>
|
||||
<div class="stacktrace">
|
||||
<pre>{{ printf "%+v" .Err }}</pre>
|
||||
</div>
|
||||
{{ end }}
|
||||
<p class="footer">
|
||||
Propulsé par
|
||||
|
Reference in New Issue
Block a user