diff options
author | Kristina Chodorow <kchodorow@google.com> | 2015-04-08 14:19:53 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-04-08 18:37:09 +0000 |
commit | 3d04c90be07502c90a3d900ebf276f72b51985da (patch) | |
tree | dde7ec354280b508bab4198567cb8b50363fb871 /src/main | |
parent | 4988a6d0a40c97e29c6b0671ca7ba4ad82fea65b (diff) |
Automated [] rollback of [].
*** Reason for rollback ***
This does not allow bazel help to be run from outside of a workspace
*** Original change description ***
Improve error message if WORKSPACE file is not found
--
MOS_MIGRATED_REVID=90608117
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/cpp/blaze_startup_options.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/cpp/blaze_startup_options.cc b/src/main/cpp/blaze_startup_options.cc index 57e89a84ec..21636496c2 100644 --- a/src/main/cpp/blaze_startup_options.cc +++ b/src/main/cpp/blaze_startup_options.cc @@ -95,10 +95,7 @@ string BlazeStartupOptions::GetWorkspace(const string &cwd) { } workspace = blaze_util::Dirname(workspace); } while (!workspace.empty() && workspace != "/"); - - fprintf(stderr, "Could not find WORKSPACE file at or above %s.\n" - "Is your current directory in a Bazel source tree?\n", cwd.c_str()); - exit(blaze_exit_code::LOCAL_ENVIRONMENTAL_ERROR); + return ""; } blaze_exit_code::ExitCode BlazeStartupOptions::ProcessArgExtra( |