public void printError(String error) {
      printError(error, null);
    }
Logs an error into the log file, and into the HiveServer2 or HiveCli error stream too.
BeeLine uses the operation log file to show the logs to the user, so depending on the
BeeLine settings it could be shown to the user.
@param error The log message
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java