diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-10-15 16:06:26 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-10-15 16:13:16 +0200 |
commit | faaad94fb8c9dd92eb249f7805a0a9bfe55e21a8 (patch) | |
tree | 414c8a946608c8b2df837e905da4b6f1e980935b /driver | |
parent | 086e5ee66fd9f9980be2430541e8dbf242600429 (diff) | |
download | jazzer-api-faaad94fb8c9dd92eb249f7805a0a9bfe55e21a8.tar.gz |
Fix incorrect exit code in failure case
This masked failing tests in the CI.
Along the way, improve the error message.
Diffstat (limited to 'driver')
-rw-r--r-- | driver/jvm_tooling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/jvm_tooling.cpp b/driver/jvm_tooling.cpp index 98b5fd73..ece2c686 100644 --- a/driver/jvm_tooling.cpp +++ b/driver/jvm_tooling.cpp @@ -160,9 +160,9 @@ std::string getInstrumentorAgentPath(const std::string &executable_path) { // User provided agent location takes precedence. if (!FLAGS_agent_path.empty()) { if (std::ifstream(FLAGS_agent_path).good()) return FLAGS_agent_path; - LOG(ERROR) << "Could not find " << kAgentFileName << "in \"" + LOG(ERROR) << "Could not find " << kAgentFileName << " at \"" << FLAGS_agent_path << "\""; - exit(0); + exit(1); } // First check if we are running inside the Bazel tree and use the agent // runfile. |