Skip to content

Commit

Permalink
fix error message (dmlc#90)
Browse files Browse the repository at this point in the history
* fix error message

* fix
  • Loading branch information
piiswrong authored Dec 29, 2016
1 parent 472ad59 commit 288d06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pass/infer_shape_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Graph InferAttr(Graph &&ret,
try {
forward_known = finfer(inode.source->attrs, &ishape, &oshape);
} catch (const std::exception& e) {
throw dmlc::Error(e.what() + std::string(" with ") + inode.source->attrs.name);
throw dmlc::Error("Error in operator " + inode.source->attrs.name + ": " + e.what());
}
} else {
CHECK(!last_iter)
Expand Down

0 comments on commit 288d06c

Please sign in to comment.