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:
parent
7a6818d3fa
commit
1781abf702
@ -1447,6 +1447,11 @@ BApplication::_ArgvReceived(BMessage *message)
|
||||
if (error == B_OK && argc > 0)
|
||||
ArgvReceived(argc, argv);
|
||||
|
||||
if (error != B_OK) {
|
||||
fprintf(stderr, "Error parsing B_ARGV_RECEIVED message. Message:\n");
|
||||
message->PrintToStream();
|
||||
}
|
||||
|
||||
// cleanup
|
||||
if (argv) {
|
||||
for (int32 i = 0; i < argc; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user