error include msg id

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-01-23 09:56:15 -07:00
parent 7c15c64a48
commit 2f9bd750db
2 changed files with 4 additions and 4 deletions

View File

@ -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"
}
}
}

View File

@ -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));
}