when there are multiple filenames, print what got interpreted as 2nd filename
This commit is contained in:
parent
3e58dabc16
commit
3a3691f187
1 changed files with 9 additions and 1 deletions
|
@ -839,7 +839,15 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
|
|||
early_error(sopts.error_format, "no input filename given");
|
||||
}
|
||||
1 => panic!("make_input should have provided valid inputs"),
|
||||
_ => early_error(sopts.error_format, "multiple input filenames provided"),
|
||||
_ =>
|
||||
early_error(
|
||||
sopts.error_format,
|
||||
&format!(
|
||||
"multiple input filenames provided (first two filenames are `{}` and `{}`)",
|
||||
matches.free[0],
|
||||
matches.free[1],
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue