HBASE-458 Shell does not throw an error when you feed it garbage statements.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@630566 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bryan Duxbury 2008-02-24 02:02:36 +00:00
parent 8e6a233085
commit 4c9a4b4cb0
1 changed files with 2 additions and 2 deletions

View File

@ -115,10 +115,10 @@ public class Shell {
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();
if (rs != null) { if (rs != null) {
if (rs != null && rs.getType() > -1) if (rs != null && rs.getType() > Constants.ERROR_CODE)
System.out.println(rs.getMsg() + System.out.println(rs.getMsg() +
executeTime((rs.getType() == 1), start, end)); executeTime((rs.getType() == 1), start, end));
else if (rs.getType() == -9) else if (rs.getType() == Constants.ERROR_CODE)
System.out.println(rs.getMsg()); System.out.println(rs.getMsg());
} }
queryStr = new StringBuilder(); queryStr = new StringBuilder();