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/ee435fb1
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/ee435fb1
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/ee435fb1

Branch: refs/heads/txn
Commit: ee435fb182065c10bd52591289b5f20595498197
Parents: a9a9b24
Author: Gabriel Reid <[email protected]>
Authored: Sat Nov 7 09:07:22 2015 +0100
Committer: Gabriel Reid <[email protected]>
Committed: Sat Nov 7 18:05:53 2015 +0100

----------------------------------------------------------------------
 bin/phoenix_sandbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ee435fb1/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')

Reply via email to