summaryrefslogtreecommitdiff
path: root/cli/tools/check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r--cli/tools/check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 9232f324b..d50af5230 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -84,7 +84,9 @@ impl TypeChecker {
graph: ModuleGraph,
options: CheckOptions,
) -> Result<Arc<ModuleGraph>, AnyError> {
- let (graph, diagnostics) = self.check_diagnostics(graph, options).await?;
+ let (graph, mut diagnostics) =
+ self.check_diagnostics(graph, options).await?;
+ diagnostics.emit_warnings();
if diagnostics.is_empty() {
Ok(graph)
} else {