Fixing Error(..) usage
This commit is contained in:
parent
6b51e778a1
commit
09f332130a
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue