Error codes · Markup

PW5009

dead_internal_link

The program must hold to this: an internal link must name a route the program declares.

A program the compiler refuses with it

Refused: PW5009
module site

page Home() {
    route "/"

    view {
        <title>Home</title>
        <main>
            <a href="/abuot">About us</a>
        </main>
    }
}

page About() {
    route "/about"

    view {
        <title>About</title>
        <main>
            <h1>About us</h1>
        </main>
    }
}

From A link to nowhere, in Why Pleris. A test holds the guide's examples to the compiler.

Reading the diagnostic

pw check prints the code in brackets, [PW5009], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.