diff --git a/pd/src/g_template.c b/pd/src/g_template.c index adfd27a07c074ce65fb947553aed79b3c3fdf54a..e0f095b2d8142b1845b369c1ca2237583b29e089 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -730,7 +730,7 @@ int gtemplate_cancreate(t_symbol *templatename, int argc, t_atom *argv) } else { - error("error: struct: bad array field arguments"); + error("struct: bad array field arguments"); return 0; } } @@ -743,14 +743,19 @@ int gtemplate_cancreate(t_symbol *templatename, int argc, t_atom *argv) } else { - error("error: struct: bad canvas field arguments"); + error("struct: bad canvas field arguments"); return 0; } } + else + { + error("struct: bad field type"); + return 0; + } } if (argc) { - error("error: struct: extra argument"); + error("struct: extra argument"); return 0; } return 1;