Reduce verbosity under --debug default level

This commit is contained in:
Wilson Snyder
2025-01-25 16:01:20 -05:00
parent 70c6651aac
commit bdcfc4e286
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ void V3ErrorGuarded::v3errorEnd(std::ostringstream& sstr, const string& extra)
}
// Suppress duplicate messages
if (!m_messages.insert(msg).second) return;
if (!extra.empty()) {
if (!extra.empty() && !m_errorSuppressed) {
const string extraMsg = warnMore() + extra + "\n";
const size_t pos = msg.find('\n');
msg.insert(pos + 1, extraMsg);