Add more details in message.

This commit is contained in:
James Cole 2024-01-04 11:46:23 +01:00
parent c32044a8eb
commit 1ba7847d84
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
6 changed files with 1648 additions and 1633 deletions

View File

@ -216,6 +216,7 @@ class Handler extends ExceptionHandler
'json' => request()->acceptsJson(),
'method' => request()->method(),
'headers' => $headers,
'post' => 'POST' === request()->method() ? json_encode(request()->all()) : '',
];
// create job that will mail.
@ -239,8 +240,7 @@ class Handler extends ExceptionHandler
return redirect($redirect ?? $previous)
->withInput(Arr::except($request->input(), $this->dontFlash))
->withErrors($exception->errors(), $request->input('_error_bag', $exception->errorBag))
;
->withErrors($exception->errors(), $request->input('_error_bag', $exception->errorBag));
}
private function shouldntReportLocal(\Throwable $e): bool

View File

@ -46,10 +46,10 @@ class TransactionGroupTransformer extends AbstractTransformer
private ExchangeRateConverter $converter;
private array $currencies = [];
private TransactionCurrency $default;
private array $meta;
private array $notes;
private array $locations;
private array $tags;
private array $meta = [];
private array $notes = [];
private array $locations = [];
private array $tags = [];
public function collectMetaData(Collection $objects): void
{

View File

@ -116,6 +116,7 @@ return [
'error_github_text' => 'If you prefer, you can also open a new issue on https://github.com/firefly-iii/firefly-iii/issues.',
'error_stacktrace_below' => 'The full stacktrace is below:',
'error_headers' => 'The following headers may also be relevant:',
'error_post' => 'This was submitted by the user:',
// Ignore this comment

View File

@ -1896,6 +1896,7 @@ return [
// Ignore this comment
// transactions:
'wait_attachments' => 'Please wait for the attachments to upload.',
'amount_foreign_if' => 'Amount in foreign currency, if any',
'amount_destination_account' => 'Amount in the currency of the destination account',
'edit_transaction_title' => 'Edit transaction ":description"',

View File

@ -52,5 +52,13 @@
{% endif %}
{% endfor %}
</p>
{% if ('' != post %}
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
{{ trans('email.error_post') }}
</p>
<p style="font-family: monospace;font-size:11px;color:#aaa">
{{ post }}
</p>
{% endif %}
{% include 'emails.footer-html' %}

View File

@ -33,5 +33,10 @@
{% endif %}
{% endfor %}
{% if ('' != post %}
{{ trans('email.error_post') }}
{{ post }}
{% endif %}
{% include 'emails.footer-text' %}