flatc now outputs the filename with error messages.

Bug: 16683956
Change-Id: Id8435e868899ca0bbf0add84852a54bfaea63b4a
Tested: on OS X.
This commit is contained in:
Wouter van Oortmerssen
2014-08-21 15:44:51 -07:00
parent c553b6b950
commit 51ba48ae40

View File

@@ -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(