Inhalte aufrufen

Profilbild

Prevent detailed errors on controller endpoints


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
2 Antworten zu diesem Thema

#1 altmoola

altmoola

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 66 Beiträge

Geschrieben: 09 April 2021 - 15:13

When navigating to a controller end point without specifying parameters, I get this error message with parameter details that I'd like to hide and make it more generic. How can I do this? https://localhost/Product/Reviews was the URL used:

 

wQMaPjU.jpg



#2 altmoola

altmoola

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 66 Beiträge

Geschrieben: 09 April 2021 - 15:18

Nevermind, I didn't realize I had ShowCustomErrors enabled.



#3 Marcel Schmidt

Marcel Schmidt

    SmartStore AG

  • Administrators
  • 149 Beiträge

Geschrieben: 09 April 2021 - 15:19

Hi,

 

to change the custom error display, take a look at Views > Shared > Error.cshtml

 

Best regards