Improve error handling

This commit is contained in:
Joscha 2021-12-18 18:27:48 +01:00
parent 96f7aa77dc
commit d67bf0aeea
6 changed files with 197 additions and 34 deletions

View file

@ -27,7 +27,7 @@ pub enum Error {
}
impl Error {
pub fn print(self) {
pub fn print(&self) {
match self {
Error::ResolvePath { path, error } => {
eprintln!("Could not resolve path {:?}:", path);