Skip to content

Commit

Permalink
Include blif filename in parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurray committed Nov 4, 2016
1 parent 99d1f79 commit 2d4c0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpr/SRC/base/read_blif.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ struct BlifAllocCallback : public blifparse::Callback {
void lineno(int line_num) override { lineno_ = line_num; }

void parse_error(const int curr_lineno, const std::string& near_text, const std::string& msg) override {
vpr_throw(VPR_ERROR_BLIF_F, "", curr_lineno,
vpr_throw(VPR_ERROR_BLIF_F, filename_.c_str(), curr_lineno,
"Error in blif file near '%s': %s\n", near_text.c_str(), msg.c_str());
}
public:
Expand Down

0 comments on commit 2d4c0b3

Please sign in to comment.