feat(es): Provide more information when loading of input source map failed (#7249)

This commit is contained in:
limerick 2023-04-12 21:21:25 +08:00 committed by GitHub
parent 8e5cb60183
commit f0e3b1d09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,12 @@ impl Compiler {
filename.display()
));
if !map_path.exists() {
bail!("failed to find input source map file")
bail!(
"failed to find input source map file {:?} in \
{:?} file",
map_path.display(),
filename.display()
)
}
}