We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976289a commit 841d2ecCopy full SHA for 841d2ec
src/args.rs
@@ -249,13 +249,18 @@ where
249
A: Iterator<Item = String>,
250
{
251
let mut arg_iter = args.into_iter().fuse();
252
- let test_path = PathBuf::from(
+ let test_path_arg = PathBuf::from(
253
arg_iter
254
.next()
255
.ok_or("excepted path to test source file as first argument")?,
256
- )
257
- .canonicalize()
258
- .map_err(|err| format!("Failed to canonicalize test path: {}", err))?;
+ );
+ let test_path = test_path_arg.canonicalize().map_err(|err| {
+ format!(
259
+ "Failed to canonicalize test path `{}`: {}",
260
+ test_path_arg.display(),
261
+ err
262
+ )
263
+ })?;
264
let mut run_command = None;
265
let mut target = None;
266
0 commit comments