src/JsRender/PlainFile.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 08:09:55 +0000 (16:09 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 08:09:55 +0000 (16:09 +0800)
src/JsRender/PlainFile.vala

index 453b1dd..992af64 100644 (file)
@@ -97,7 +97,11 @@ namespace JsRender {
                if (!this.loaded) {
                        return;
                }
-            this.writeFile(this.path, this.contents);
+               try { 
+                   this.writeFile(this.path, this.contents);
+            } catch (Error e) {
+                   // error ???
+               }
             
         }
            // ignore these calls.