Skip to content

replace %sveltekit.message% with %sveltekit.error.message% #6645

@Rich-Harris

Description

@Rich-Harris

Describe the problem

As of #6586 we have a standard way of dealing with errors in a SvelteKit app. It would make sense if we respected the App.PageError shape in src/error.html.

Describe the proposed solution

Change %sveltekit.message% to %sveltekit.error.message%. We could include other properties on the error object, but there are some caveats here (we can't allow any way for src/error.html to blow up during rendering) so for now we should probably just make that change, and worry about surfacing %sveltekit.error.code% or whatever as a post-1.0 thing

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions