Print and error and the message in case _ArgvReceived() fails to parse the
message correctly, it is a bit strange why the message should not follow protocol. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25499 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1447,6 +1447,11 @@ BApplication::_ArgvReceived(BMessage *message)
|
|||||||
if (error == B_OK && argc > 0)
|
if (error == B_OK && argc > 0)
|
||||||
ArgvReceived(argc, argv);
|
ArgvReceived(argc, argv);
|
||||||
|
|
||||||
|
if (error != B_OK) {
|
||||||
|
fprintf(stderr, "Error parsing B_ARGV_RECEIVED message. Message:\n");
|
||||||
|
message->PrintToStream();
|
||||||
|
}
|
||||||
|
|
||||||
// cleanup
|
// cleanup
|
||||||
if (argv) {
|
if (argv) {
|
||||||
for (int32 i = 0; i < argc; i++)
|
for (int32 i = 0; i < argc; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user