Fix error when stdlib not available

This commit is contained in:
TudbuT 2023-05-25 06:22:00 +02:00
parent 80b2604ced
commit 7e4d2e370e

View file

@ -634,7 +634,7 @@ pub fn import(stack: &mut Stack) -> OError {
} }
if stack.include_file( if stack.include_file(
&(*fs::canonicalize(s.clone()) &(*fs::canonicalize(s.clone())
.map_err(|x| stack.error(ErrorKind::IO(x.to_string() + " (opening " + &s + ")")))? .unwrap_or_else(|_| s.clone().into())
.as_os_str() .as_os_str()
.to_string_lossy()) .to_string_lossy())
.to_owned(), .to_owned(),