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:
parent
8e6a233085
commit
4c9a4b4cb0
|
@ -115,10 +115,10 @@ public class Shell {
|
|||
|
||||
long end = System.currentTimeMillis();
|
||||
if (rs != null) {
|
||||
if (rs != null && rs.getType() > -1)
|
||||
if (rs != null && rs.getType() > Constants.ERROR_CODE)
|
||||
System.out.println(rs.getMsg() +
|
||||
executeTime((rs.getType() == 1), start, end));
|
||||
else if (rs.getType() == -9)
|
||||
else if (rs.getType() == Constants.ERROR_CODE)
|
||||
System.out.println(rs.getMsg());
|
||||
}
|
||||
queryStr = new StringBuilder();
|
||||
|
|
Loading…
Reference in New Issue