From 2f9bd750dbd4868b6a84b93695eead2be5625d18 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Fri, 23 Jan 2026 09:56:15 -0700 Subject: [PATCH] error include msg id Signed-off-by: James Cherry --- tcl/Util.tcl | 4 ++-- util/Report.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tcl/Util.tcl b/tcl/Util.tcl index 49028698..dc038e44 100644 --- a/tcl/Util.tcl +++ b/tcl/Util.tcl @@ -209,9 +209,9 @@ proc sta_warn { msg_id msg } { proc sta_error { msg_id msg } { if { ! [is_suppressed $msg_id] } { if { [sdc_filename] != "" } { - error "Error: [file tail [sdc_filename]] line [sdc_file_line], $msg" + error "Error $msg_id: [file tail [sdc_filename]] line [sdc_file_line], $msg" } else { - error "Error: $msg" + error "Error $msg_id: $msg" } } } diff --git a/util/Report.cc b/util/Report.cc index f2d0955d..0d8dac77 100644 --- a/util/Report.cc +++ b/util/Report.cc @@ -247,7 +247,7 @@ Report::error(int id, va_list args; va_start(args, fmt); // No prefix msg, no \n. - printToBuffer("%d", id); + printToBuffer("%d ", id); printToBufferAppend(fmt, args); va_end(args); throw ExceptionMsg(buffer_, isSuppressed(id)); @@ -259,7 +259,7 @@ Report::verror(int id, va_list args) { // No prefix msg, no \n. - printToBuffer("%d", id); + printToBuffer("%d ", id); printToBufferAppend(fmt, args); throw ExceptionMsg(buffer_, isSuppressed(id)); }