Skip to content

Commit 84587e2

Browse files
committed
Updated
1 parent 64a5522 commit 84587e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/pqxx_test.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ void assert_exception(std::function<void(void)> code, std::optional<std::string_
2727
} catch (const T& e) {
2828
exception = true;
2929
if (message) {
30-
assert(std::string_view(e.what()) == *message);
30+
std::string left(e.what());
31+
std::string right(*message);
32+
if (left != right) {
33+
throw std::runtime_error(left + " != " + right);
34+
}
3135
}
3236
}
3337
assert(exception);

0 commit comments

Comments
 (0)