mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 21:22:01 +00:00
flatc now outputs the filename with error messages.
Bug: 16683956 Change-Id: Id8435e868899ca0bbf0add84852a54bfaea63b4a Tested: on OS X.
This commit is contained in:
@@ -172,7 +172,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
contents.length());
|
contents.length());
|
||||||
} else {
|
} else {
|
||||||
if (!parser.Parse(contents.c_str(), file_it->c_str()))
|
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(
|
std::string filebase = flatbuffers::StripPath(
|
||||||
|
|||||||
Reference in New Issue
Block a user