fix: print error: messages and their contents from cargo (#3336)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-12-10 21:50:24 -08:00
1 parent 49caa2b113
commit 94a499c900
3 files changed
+25 -12

No files matched your search

+1 -6
View File
@@ -265,12 +265,7 @@ impl Output {
pub fn push_cargo_log(&mut self, message: cargo_metadata::CompilerMessage) {
use cargo_metadata::diagnostic::DiagnosticLevel;
if self.trace
|| matches!(
message.message.level,
DiagnosticLevel::Error | DiagnosticLevel::FailureNote
)
{
if self.trace || !matches!(message.message.level, DiagnosticLevel::Note) {
self.push_log(TraceMsg::cargo(message));
}
}