Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Add error page #25

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Add error page #25

merged 1 commit into from
Mar 11, 2021

Conversation

pablothedude
Copy link
Contributor

@pablothedude pablothedude force-pushed the feature/add-error-page branch 5 times, most recently from df236aa to 74d929c Compare March 10, 2021 17:15
@@ -0,0 +1,19 @@
<?php

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you should add the copyright notice to this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is still WIP, this will be fixed in: #27, after the legal team is consulted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

public function __invoke(Throwable $exception): Response
{
return $this->render('default/error.html.twig', [
'message' => $exception->getMessage(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this desirable? Showing the exception message without being certain what text may be on there? We may run a risk at disclosing sensitive data here.

Copy link
Contributor Author

@pablothedude pablothedude Mar 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to use static translations

@pablothedude pablothedude merged commit 3f0b0df into remote-vetting Mar 11, 2021
@pablothedude pablothedude deleted the feature/add-error-page branch March 11, 2021 15:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants