var error = project.GetLastError();
if(error != null){
if(project.LastExecutedActionId == error.ActionId){
project.SendInfoToLog($"Bad End\nactionId: {error.ActionId}\nmessage: {error.Exception.Message}", true);
return null;
}
}
else{
project.SendInfoToLog($"Good End from actionId: {project.LastExecutedActionId}", true);
}