Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 e7cdb9a5d -> 9ce74ca18
PHOENIX-2387 Fix sandbox error printing Use the correct sys field (stderr) to write out the error message if the project has not been built before starting the sandbox. Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/9ce74ca1 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/9ce74ca1 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/9ce74ca1 Branch: refs/heads/4.x-HBase-0.98 Commit: 9ce74ca18ea9d54c8d2a9eaeeae84f2ee9e6df18 Parents: e7cdb9a Author: Gabriel Reid <[email protected]> Authored: Sat Nov 7 09:07:22 2015 +0100 Committer: Gabriel Reid <[email protected]> Committed: Sat Nov 7 18:06:24 2015 +0100 ---------------------------------------------------------------------- bin/phoenix_sandbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/9ce74ca1/bin/phoenix_sandbox.py ---------------------------------------------------------------------- diff --git a/bin/phoenix_sandbox.py b/bin/phoenix_sandbox.py index 7523ef7..433bc98 100755 --- a/bin/phoenix_sandbox.py +++ b/bin/phoenix_sandbox.py @@ -33,8 +33,8 @@ cp_file_path = os.path.join(phoenix_target_dir, 'cached_classpath.txt') if not os.path.exists(cp_file_path): - sys.err.write("cached_classpath.txt is not present under " - + "phoenix-core/target, please rebuild the project first") + sys.stderr.write("cached_classpath.txt is not present under " + + "phoenix-core/target, please rebuild the project first\n") sys.exit(1) logging_config = os.path.join(base_dir, 'bin', 'sandbox-log4j.properties')
