Skip to content

Commit 5552361

Browse files
authored
Fix exception message (#84)
1 parent a24b173 commit 5552361

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/signalrclient/hub_connection_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace signalr
9696
auto connection = weak_connection.lock();
9797
if (connection && connection->get_connection_state() != connection_state::disconnected)
9898
{
99-
throw signalr_exception("can't register a handler if the connection is in a disconnected state");
99+
throw signalr_exception("can't register a handler if the connection is not in a disconnected state");
100100
}
101101

102102
if (m_subscriptions.find(event_name) != m_subscriptions.end())

test/signalrclienttests/hub_connection_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ TEST(on, cannot_register_handler_if_connection_not_in_disconnected_state)
16271627
}
16281628
catch (const signalr_exception& e)
16291629
{
1630-
ASSERT_STREQ("can't register a handler if the connection is in a disconnected state", e.what());
1630+
ASSERT_STREQ("can't register a handler if the connection is not in a disconnected state", e.what());
16311631
}
16321632
}
16331633

0 commit comments

Comments
 (0)