1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Additional debug information during crash

This commit is contained in:
Brian Fiete 2020-07-12 06:27:23 -07:00
parent 037b2ac1e4
commit 1fc64a1690

View file

@ -2329,7 +2329,13 @@ BeMCOperand BeMCContext::GetOperand(BeValue* value, bool allowMetaResult, bool a
//auto itr = mValueToOperand.find(value);
if (!allowFail)
{
BF_ASSERT(operandPtr != NULL);
if (operandPtr == NULL)
{
BeDumpContext dumpCtx;
String str;
dumpCtx.ToString(str, value);
Fail(StrFormat("Unable to find bevalue for operand: %s", str.c_str()));
}
}
if (operandPtr == NULL)
{