buildertool: Fix template handling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 19 Oct 2022 06:40:10 +0000 (02:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Oct 2022 06:51:29 +0000 (02:51 -0400)
We were not properly parsing the error message
here, leading to badness.

tools/gtk-builder-tool-validate.c

index aa4069fd360ffa5bf38c7b9a812fb020847e0e4f..688903d3dde5f3bcbb0015db477ccc9e47288104 100644 (file)
@@ -116,7 +116,7 @@ parse_template_error (const char   *message,
         *p = '\0';
     }
 
-  return TRUE;
+  return *class_name && *parent_name;
 }
 
 static gboolean