From bcea5ff43869296ade7b8eece91da371f9675771 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Wed, 4 Oct 2023 12:59:07 +0200 Subject: path resolution (hopefully without path traversal!) Signed-off-by: metamuffin --- src/error.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 59f4443..83a1ffa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,6 +18,8 @@ pub enum ServiceError { BadRange, #[error("bad utf8")] BadUtf8(#[from] std::str::Utf8Error), + #[error("bad path")] + BadPath, #[error("ohh. i didn't expect that this error can be generated.")] Other, } -- cgit v1.2.3-70-g09d2