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:
Stephan Aßmus 2008-05-14 20:12:57 +00:00
parent 7a6818d3fa
commit 1781abf702

View File

@ -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++)