fix: print error: messages and their contents from cargo (#3336)
This commit is contained in:
1 parent
49caa2b113
commit
94a499c900
3 files changed
+25
-12
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user