mirror of
https://github.com/denoland/deno.git
synced 2025-03-08 20:27:05 -05:00
lint
This commit is contained in:
parent
a8c647e0ec
commit
1b7ed4d990
2 changed files with 2 additions and 2 deletions
|
@ -392,6 +392,6 @@ impl ExternalLinterContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn take_error(&self) -> Option<AnyError> {
|
pub fn take_error(&self) -> Option<AnyError> {
|
||||||
self.error.as_ref().map(|e| e.lock().take()).flatten()
|
self.error.as_ref().and_then(|e| e.lock().take())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ impl LintReporter for PrettyLintReporter {
|
||||||
log::error!("Error linting: {file_path}");
|
log::error!("Error linting: {file_path}");
|
||||||
if let Some(core_err) = err.downcast_ref::<CoreError>() {
|
if let Some(core_err) = err.downcast_ref::<CoreError>() {
|
||||||
if let CoreError::Js(js_error) = core_err {
|
if let CoreError::Js(js_error) = core_err {
|
||||||
log::error!(" {}", format_js_error(&js_error));
|
log::error!(" {}", format_js_error(js_error));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue