Handle import errors

This commit is contained in:
Shunsuke Shibayama 2022-09-22 22:02:59 +09:00
parent 9c967d32f6
commit a5a0324883
2 changed files with 21 additions and 11 deletions

View file

@ -1292,6 +1292,10 @@ passed keyword args: {RED}{kw_args_len}{RESET}"
caused_by,
)
}
pub fn file_error(errno: usize, desc: String, loc: Location, caused_by: AtomicStr) -> Self {
Self::new(ErrorCore::new(errno, IoError, loc, desc, None), caused_by)
}
}
#[derive(Debug)]