Skip to content

Commit

Permalink
Improve error message for 'process_discovered_topology'
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Apr 1, 2024
1 parent 06bd34b commit 8d8f2ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MySQL_Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,10 @@ void MySQL_Monitor::process_discovered_topology(const std::string& originating_s
try {
current_discovered_port_int = stoi(s[3]);
} catch (...) {
proxy_error("Unable to parse the port value during topology discovery: [%s]. Terminating discovery early.\n", current_discovered_port_string.c_str());
proxy_error(
"Unable to parse port value coming from '%s' during topology discovery ('%s':%s). Terminating discovery early.\n",
originating_server_hostname.c_str(), current_discovered_hostname.c_str(), current_discovered_port_string.c_str()
);
return;
}

Expand Down

0 comments on commit 8d8f2ea

Please sign in to comment.