Skip to content

Commit

Permalink
fix(es): Remove useless context (#6777)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 10, 2023
1 parent 6f1e08f commit ae3cfa7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crates/swc/src/lib.rs
Expand Up @@ -923,7 +923,6 @@ impl Compiler {

self.process_js_inner(handler, orig.as_ref(), config)
})
.context("failed to process input file")
}

#[tracing::instrument(level = "info", skip(self, handler, opts))]
Expand Down
2 changes: 1 addition & 1 deletion crates/swc/tests/projects.rs
Expand Up @@ -1042,7 +1042,7 @@ fn issue_6009() {
);
}
Err(err) => {
let expected_error_msg = "failed to process input file";
let expected_error_msg = "cannot process file because";

assert!(
err.to_string().contains(expected_error_msg),
Expand Down

0 comments on commit ae3cfa7

Please sign in to comment.