Use ErrorTitle + ErrorMessage instead of newline

This commit is contained in:
Luke Hobbs 2023-06-03 09:36:05 -04:00
parent 27eec48c16
commit a17ac8a92b
1 changed files with 3 additions and 2 deletions

View File

@ -1087,10 +1087,11 @@ GameActions::Result ScriptEngine::QueryOrExecuteCustomGameAction(const CustomAct
}
return DukToGameActionResult(dukResult);
}
auto action = GameActions::Result();
action.Error = GameActions::Status::Unknown;
action.ErrorTitle = " [Unknown custom action] \n" + customAction.GetPluginName() + ": " + actionz;
action.ErrorTitle = "Unknown custom action";
action.ErrorMessage = customAction.GetPluginName() + ": " + actionz;
return action;
}