error include msg id
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
7c15c64a48
commit
2f9bd750db
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue