Fix error when stdlib not available
This commit is contained in:
parent
80b2604ced
commit
7e4d2e370e
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ pub fn import(stack: &mut Stack) -> OError {
|
|||
}
|
||||
if stack.include_file(
|
||||
&(*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()
|
||||
.to_string_lossy())
|
||||
.to_owned(),
|
||||
|
|
Loading…
Add table
Reference in a new issue