From 692d2db52a75b4fe2713d0f00479c5e324c8c2a8 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 13 Apr 2013 17:23:53 -0400 Subject: [PATCH] Notify user if the we fail to parse the type. --- .../user_interface/gui/team_window/VariablesView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp index 17e70f58a1..3019399578 100644 --- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -1488,6 +1489,13 @@ VariablesView::MessageReceived(BMessage* message) if (language->ParseTypeExpression(typeExpression, fThread->GetTeam()->DebugInfo(), type) != B_OK) { + BString errorMessage; + errorMessage.SetToFormat("Failed to resolve type %s", + typeExpression.String(), strerror(result)); + BAlert* alert = new(std::nothrow) BAlert("Error", + errorMessage.String(), "Close"); + if (alert != NULL) + alert->Go(); break; }