Notify user if the we fail to parse the type.
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include <debugger.h>
|
#include <debugger.h>
|
||||||
|
|
||||||
|
#include <Alert.h>
|
||||||
#include <Looper.h>
|
#include <Looper.h>
|
||||||
#include <PopUpMenu.h>
|
#include <PopUpMenu.h>
|
||||||
#include <ToolTip.h>
|
#include <ToolTip.h>
|
||||||
@@ -1488,6 +1489,13 @@ VariablesView::MessageReceived(BMessage* message)
|
|||||||
|
|
||||||
if (language->ParseTypeExpression(typeExpression,
|
if (language->ParseTypeExpression(typeExpression,
|
||||||
fThread->GetTeam()->DebugInfo(), type) != B_OK) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user