Skip to content

Non existent path causes panic instead of Error result #819

@chupaty

Description

@chupaty

New versions of tera panic instead of returning Error when passed an invalid glob path. For example:
rsgen-avro

let mut tera = Tera::new("/dev/null/*")?;

Problem caused by use of unwrap() instead of ? operator, for example:

tera.rs
let parent_dir = std::fs::canonicalize(parent_dir).unwrap();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions