From 1781abf70243c2ada0798f90859e9c39b523d904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 14 May 2008 20:12:57 +0000 Subject: [PATCH] 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 --- src/kits/app/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index f9cf24eb92..378eb4db88 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -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++)