From 09f332130a952d2e87c9e54c1e914239eb3ea519 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 23 Aug 2023 14:38:05 +0300 Subject: [PATCH] Fixing Error(..) usage --- tpl/macro.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 5d41893..b4403fb 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -535,7 +535,7 @@ public class {{o.name}} : IRpc {% if f.type is instanceof('\\mtgMetaStruct') %} {%- if not has_token(f.type, 'POD') -%} - Error("Diffable struct '" ~ f.type ~ "' must be POD"); + {{Error("Diffable struct '" ~ f.type ~ "' must be POD")}} {%- endif -%} { @@ -552,7 +552,7 @@ public class {{o.name}} : IRpc } {% elseif f.type is instanceof('\\mtgArrType') %} {%- if not has_token(f.type.value, 'POD') -%} - Error("Diffable struct '" ~ f.type.value ~ "' must be POD"); + {{Error("Diffable struct '" ~ f.type.value ~ "' must be POD")}} {%- endif -%} if(DiffCollection({{f.name}}, old.{{f.name}}, @@ -577,7 +577,7 @@ public class {{o.name}} : IRpc MetaIO.SetFieldDirty(ref diff.fields_mask, {{field_idx}}); } {% else %} - Error("Diff for field '"~ f.name ~"' is not supported"); + {{Error("Diff for field '"~ f.name ~"' is not supported") }} {% endif %} {% endmacro %}