Added a "error info copy & paste" text box on the 500 error page

This commit is contained in:
Bernd Bestel
2020-11-15 15:12:15 +01:00
parent 22e9e4e311
commit 3568fd9dcb
3 changed files with 24 additions and 0 deletions

View File

@@ -15,6 +15,26 @@
<h4>{{ $__t('Stack trace') }}</h4>
<pre class="my-0"><code>{!! $exception->getTraceAsString() !!}</code></pre>
</div>
<div class="alert alert-dark py-1">
<h4>{{ $__t('Easy error info copy & paste (for reporting)') }}</h4>
<textarea class="form-control easy-link-copy-textbox text-monospace mt-1"
rows="20">
Error source:
```
{!! $exception->getFile() !!}:{!! $exception->getLine() !!}
```
Error message:
```
{!! $exception->getMessage() !!}
```
Stack trace:
```
{!! $exception->getTraceAsString() !!}
```
</textarea>
</div>
</div>
</div>
@stop