Skip to content

Commit a53f7ad

Browse files
authored
Fix the message when creating password history fails (#16108)
* Fix the message when creating password history fails * spotless
1 parent 313905d commit a53f7ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/DataNodeAuthUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ public static TSStatus recordPassword(String username, String password, String o
177177
} catch (Exception e) {
178178
LOGGER.error("Cannot create password history for {} because {}", username, e.getMessage());
179179
return new TSStatus(TSStatusCode.INTERNAL_SERVER_ERROR.getStatusCode())
180-
.setMessage(
181-
"Cannot create password history for " + username + " because " + e.getMessage());
180+
.setMessage("The server is not ready for login, please check the server log for details");
182181
}
183182
}
184183
}

0 commit comments

Comments
 (0)