summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-30 21:15:11 +0100
committermo8it <mo8it@proton.me>2024-03-30 21:15:11 +0100
commitb5e17c965d1fee01336fdfabd93c575555a44d62 (patch)
treeb20c6e6ce87d614910f7b79c241eee373d06e07a /src
parent23f0fae1c8eddfa1ac679d8167ec63b554c554b9 (diff)
Add an error message when a file is not embedded
Diffstat (limited to 'src')
-rw-r--r--src/embedded.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/embedded.rs b/src/embedded.rs
index 25dbe64..f65b8ae 100644
--- a/src/embedded.rs
+++ b/src/embedded.rs
@@ -113,6 +113,9 @@ impl EmbeddedFiles {
}
}
- Err(io::Error::from(io::ErrorKind::NotFound))
+ Err(io::Error::new(
+ io::ErrorKind::NotFound,
+ format!("{} not found in the embedded files", path.display()),
+ ))
}
}