Errors in the console

The page loads without JavaScript or network errors.

On this page

Impact

ScanGov impact ratings

About

Errors logged to the console help developers find and fix problems in their code. When something goes wrong, like a bug or incorrect function, the console displays a message with details about the issue. This helps developers understand what went wrong, where it happened, and what needs to be fixed. By using the console, developers can troubleshoot and improve their websites or applications, making them run more smoothly for users.

Risks

Site may have hidden bugs that break features.

Why it's important

Signals problems in website code, helping developers fix issues that could affect how the site works or displays.

User stories

As a security researcher, I want to find a security.txt file on the website so that I can report vulnerabilities to the right contact securely and efficiently.

Code

Failing pattern:

// Fail: accessing a property on undefined throws a console error
const name = user.profile.name;

Passing pattern:

// Pass: guard against undefined before accessing nested properties
const name = user?.profile?.name ?? "";

Error

ScanGov messaging when a site fails a standard:

Page load problem — check browser console for errors and details.

Guidance

    Indicators

    On this page