Skip to content

Commit 4e183fc

Browse files
author
Pierre-Luc Gagné
committed
Tidy MySQL diagnostics formatting
1 parent ecc844d commit 4e183fc

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/include/ds_mysql/mysql_connection.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ class mysql_connection {
174174
std::cerr << "[ds_mysql] mysql_real_connect failed: host=" << host.to_string()
175175
<< ", port=" << port.to_unsigned_int() << ", database=" << database.to_string()
176176
<< ", user=" << credentials.user().to_string()
177-
<< ", password_length=" << credentials.password().to_string().size()
178-
<< ", error=" << error << '\n';
177+
<< ", password_length=" << credentials.password().to_string().size() << ", error=" << error
178+
<< '\n';
179179
return std::unexpected(error);
180180
}
181181

tests/integration/mysql/test_query_builder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ struct trade {
7070
try {
7171
parsed_port = static_cast<unsigned int>(std::stoul(port_str));
7272
} catch (std::exception const& ex) {
73-
std::cerr << "[ds_mysql][integration] Invalid DS_MYSQL_TEST_PORT='" << port_str
74-
<< "': " << ex.what() << '\n';
73+
std::cerr << "[ds_mysql][integration] Invalid DS_MYSQL_TEST_PORT='" << port_str << "': " << ex.what() << '\n';
7574
return std::nullopt;
7675
}
7776

0 commit comments

Comments
 (0)