App Investigators scanner online

← All guides

Stop showing stack traces and error details to visitors

When something breaks, what does a visitor see? If it is a wall of code with file paths, library versions or a database name, you are handing out a map of your app. Visitors want a plain message and a way to continue.

How to check

  1. Cause an error on purpose: open an address for a record that does not exist, such as /orders/99999999.
  2. Submit a form with an odd value.
  3. Read what comes back. It should be a short message, with no file paths, no library names and versions, and no database text.

How to fix it

Add your own handler so visitors see a plain message and the details go to your logs:

Express

app.use((err, req, res, next) => {
  console.error(err);               // details stay in your logs
  res.status(500).send("Something went wrong. Please try again.");
});

What a good error page has

Want this checked on your app?

In a run, App Investigators triggers errors on purpose and reports when a page shows technical details like stack traces to visitors.

We email you once when a spot opens. No spam, and you can ask us to remove you any time at support@appinvestigators.com.

Related guides

Last updated 2026-11-24. This guide describes common problems and fixes. It is not a guarantee that any app is secure or free of bugs.