flatc now outputs the filename with error messages.

Bug: 16683956
Change-Id: Id8435e868899ca0bbf0add84852a54bfaea63b4a
Tested: on OS X.
parent c553b6b9
......@@ -172,7 +172,7 @@ int main(int argc, const char *argv[]) {
contents.length());
} else {
if (!parser.Parse(contents.c_str(), file_it->c_str()))
Error(parser.error_.c_str());
Error((*file_it + ": " + parser.error_).c_str());
}
std::string filebase = flatbuffers::StripPath(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment