Skip to content

Commit

Permalink
Print err msg when authenticate failed. (vesoft-inc#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
CPWstatic authored Mar 9, 2020
1 parent ba8b3f6 commit 5294d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/cpp/GraphClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cpp2::ErrorCode GraphClient::connect(const std::string& username,
client_->sync_authenticate(resp, username, password);
if (resp.get_error_code() != cpp2::ErrorCode::SUCCEEDED) {
LOG(ERROR) << "Failed to authenticate \"" << username << "\": "
<< resp.get_error_msg();
<< ((!resp.get_error_msg()) ? *(resp.get_error_msg()) : "");
return resp.get_error_code();
}
} catch (const std::exception& ex) {
Expand Down

0 comments on commit 5294d63

Please sign in to comment.