From dc7dfa74f4a6b8fe61b736a89b42511fa966a6d2 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 5 Aug 2002 00:50:36 +0000 Subject: [PATCH] Now the quit command prints the error code, when constructing the messenger to the app failed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@578 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/registrar/RosterShell.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/servers/registrar/RosterShell.cpp b/src/tests/servers/registrar/RosterShell.cpp index 84fcfad5e5..18199804a3 100644 --- a/src/tests/servers/registrar/RosterShell.cpp +++ b/src/tests/servers/registrar/RosterShell.cpp @@ -174,9 +174,10 @@ public: // send a B_QUIT_REQUESTED message to each team for (int32 i = 0; i < count; i++) { team_id team = (team_id)teamList.ItemAt(i); - BMessenger messenger(NULL, team); + status_t error = B_OK; + BMessenger messenger(NULL, team, &error); if (messenger.IsValid()) { - status_t error = messenger.SendMessage(B_QUIT_REQUESTED); + error = messenger.SendMessage(B_QUIT_REQUESTED); if (error != B_OK) { printf("quit: failed to deliver the B_QUIT_REQUESTED " "message to team %ld\n", team); @@ -185,6 +186,7 @@ public: } else { printf("quit: failed to create a messenger for team %ld\n", team); + printf(" %s\n", strerror(error)); } } }