1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-05-02 18:25:45 -04:00

Add an error message when a file is not embedded

This commit is contained in:
mo8it 2024-03-30 21:15:11 +01:00
parent 23f0fae1c8
commit b5e17c965d

View file

@ -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()),
))
}
}