You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2016/02/14 13:50:56 UTC
thrift git commit: THRIFT-3629 Parser sets exitcode on errors,
but the generator does not Client: Compiler (general) Patch: Jens
Geyer
Repository: thrift
Updated Branches:
refs/heads/master 4733c4c53 -> d4722d9c4
THRIFT-3629 Parser sets exitcode on errors, but the generator does not
Client: Compiler (general)
Patch: Jens Geyer
This closes #861
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/d4722d9c
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/d4722d9c
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/d4722d9c
Branch: refs/heads/master
Commit: d4722d9c48318d1077b16b557f685d0b1aab16d4
Parents: 4733c4c
Author: Jens Geyer <je...@apache.org>
Authored: Sat Feb 13 23:25:11 2016 +0100
Committer: Jens Geyer <je...@apache.org>
Committed: Sun Feb 14 13:50:07 2016 +0100
----------------------------------------------------------------------
compiler/cpp/src/main.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/d4722d9c/compiler/cpp/src/main.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index 1b3b633..31402e0 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -1033,9 +1033,9 @@ void generate(t_program* program, const vector<string>& generator_strings) {
}
}
} catch (string s) {
- printf("Error: %s\n", s.c_str());
+ failure("Error: %s\n", s.c_str());
} catch (const char* exc) {
- printf("Error: %s\n", exc);
+ failure("Error: %s\n", exc);
}
}