Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(es): Remove useless context #6777

Merged
merged 2 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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