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