mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Fix error message for file not found
This commit is contained in:
parent
537b71d258
commit
36cfede93c
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,7 @@ pub fn build(target: &Triple, matches: &ArgMatches, config: BuildConfig) -> io::
|
||||||
LinkType::Executable
|
LinkType::Executable
|
||||||
};
|
};
|
||||||
|
|
||||||
let path = Path::new(filename).canonicalize().unwrap();
|
let path = Path::new(filename);
|
||||||
let src_dir = path.parent().unwrap().canonicalize().unwrap();
|
|
||||||
|
|
||||||
// Spawn the root task
|
// Spawn the root task
|
||||||
let path = path.canonicalize().unwrap_or_else(|err| {
|
let path = path.canonicalize().unwrap_or_else(|err| {
|
||||||
|
@ -173,6 +172,7 @@ pub fn build(target: &Triple, matches: &ArgMatches, config: BuildConfig) -> io::
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let src_dir = path.parent().unwrap().canonicalize().unwrap();
|
||||||
let res_binary_path = build_file(
|
let res_binary_path = build_file(
|
||||||
&arena,
|
&arena,
|
||||||
target,
|
target,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue