Skip to content

Commit

Permalink
完善非法url提示:#2129
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-chu committed Dec 4, 2022
1 parent f05a950 commit 04422b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void splitUrl(const std::string &url, std::string &host, uint16_t &port) {
checkHost(host);
return;
}
CHECK(pos > 0, "invalid url:", port);
CHECK(pos > 0, "invalid url:", url);
CHECK(sscanf(url.data() + pos + 1, "%" SCNu16, &port) == 1, "parse port from url failed:", url);
host = url.substr(0, pos);
checkHost(host);
Expand Down

0 comments on commit 04422b3

Please sign in to comment.