projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c553b6b
)
flatc now outputs the filename with error messages.
author
Wouter van Oortmerssen
<wvo@google.com>
Thu, 21 Aug 2014 22:44:51 +0000
(15:44 -0700)
committer
Wouter van Oortmerssen
<wvo@google.com>
Fri, 22 Aug 2014 21:02:32 +0000
(14:02 -0700)
Bug:
16683956
Change-Id: Id8435e868899ca0bbf0add84852a54bfaea63b4a
Tested: on OS X.
src/flatc.cpp
patch
|
blob
|
history
diff --git
a/src/flatc.cpp
b/src/flatc.cpp
index
599a9c8
..
40f0ae2
100755
(executable)
--- a/
src/flatc.cpp
+++ b/
src/flatc.cpp
@@
-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(