From f0e3b1d09a69c3eb3035e2dbc00d537576b48a08 Mon Sep 17 00:00:00 2001 From: limerick Date: Wed, 12 Apr 2023 21:21:25 +0800 Subject: [PATCH] feat(es): Provide more information when loading of input source map failed (#7249) --- crates/swc/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs index 7749db597bef..b297ed270e27 100644 --- a/crates/swc/src/lib.rs +++ b/crates/swc/src/lib.rs @@ -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() + ) } }