mjhouse / bowtie

The bowtie social media website
GNU General Public License v3.0
0 stars 0 forks source link

404/error handler failure #17

Open mjhouse opened 4 years ago

mjhouse commented 4 years ago

Sometimes while rendering 404 (probably other handlers as well) error pages, Tera crashes with an error about template inheritance. Need to debug and refactor error handlers so that this no longer occurs.

Possibly load an render a single tera template in error handlers instead of relying on parsing the Resources struct from the request.

mjhouse commented 4 years ago

Fails with error:

[crates\routes\src\resources.rs:385] e = Error {
    kind: Msg(
        "Failed to render \'errors/404.html\'",
    ),
    source: Some(
        Error {
            kind: Msg(
                "Inheritance in included templates is currently not supported: extended 'base.html'",
            ),
            source: None,
        },
    ),
}