Skip to content

Commit

Permalink
sdc: Report TCL error in SDC file
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Michalak <[email protected]>
  • Loading branch information
tmichalak committed Jan 19, 2022
1 parent 3223a93 commit 7f52181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdc-plugin/sdc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct ReadSdcCmd : public Frontend {
std::getline(*f, line);
line_number++;
if (Tcl_Eval(interp, line.c_str()) != TCL_OK) {
log_cmd_error("TCL interpreter returned an error: %s\n", Tcl_GetStringResult(interp));
log_file_error(file_name, line_number, "%s: TCL interpreter returned an error: %s\n", pass_name.c_str(), Tcl_GetStringResult(interp));
}
}
}
Expand Down

0 comments on commit 7f52181

Please sign in to comment.