Fix #8028 - language server performance, fix warnings and critical errors
[roobuilder] / src / Project / Meson.vala
index e91fc93..16637c2 100644 (file)
@@ -221,7 +221,13 @@ install_data(
                        
                        }
                        gr += "</gresources>\n";
-                       FileUtils.set_contents(this.project.path + "/resources/gresources.xml", gr, gr.length);
+                       try {
+                               FileUtils.set_contents(this.project.path + "/resources/gresources.xml", gr, gr.length);
+                       } catch (GLib.Error e) { 
+                               return "";
+                       }
+                        
+                       
                        
                        this.has_resources = true;
                        
@@ -232,8 +238,7 @@ install_data(
        c_name: '" + this.project.name + "_resources' 
 )";
                        
-                
-                       return "";
+                 
                
                }