Change filename to path for clarity

This commit is contained in:
Jarkko Kuukkanen
2020-03-13 12:07:51 +02:00
parent 8c1c37666d
commit 6c72e3c48b
3 changed files with 15 additions and 15 deletions

View File

@@ -124,8 +124,8 @@ impl fmt::Display for EvalAltResult {
}
Self::LoopBreak => write!(f, "{}", desc),
Self::Return(_, pos) => write!(f, "{} ({})", desc, pos),
Self::ErrorReadingScriptFile(filename, err) => {
write!(f, "{} '{}': {}", desc, filename.display(), err)
Self::ErrorReadingScriptFile(path, err) => {
write!(f, "{} '{}': {}", desc, path.display(), err)
}
Self::ErrorParsing(p) => write!(f, "Syntax error: {}", p),
Self::ErrorFunctionArgsMismatch(fun, need, n, pos) => write!(