Fixing Error(..) usage

This commit is contained in:
Pavel Shevaev 2023-08-23 14:38:05 +03:00
parent 6b51e778a1
commit 09f332130a
1 changed files with 3 additions and 3 deletions

View File

@ -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 %}