GitMonitor.vala
authorAlan Knowles <alan@roojs.com>
Mon, 14 Aug 2017 03:07:47 +0000 (11:07 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 14 Aug 2017 03:07:47 +0000 (11:07 +0800)
GitMonitor.vala

index 22c99f7..bdef535 100644 (file)
@@ -237,7 +237,7 @@ public class GitMonitor : Monitor
                                notification.set_timeout(5);
                                notification.show();
                        } catch(Error e) {
-                               print(e.message);
+                               print("Error %s\n",e.message);
                        }
                        return false; // do not keep doing this..
 
@@ -480,6 +480,7 @@ public class GitMonitor : Monitor
                                repo.pull();
                        } catch(Error e) {
                                failure +=  e.message;
+                               print("Pull failed:\n");
                        }
                        
                        
@@ -488,11 +489,13 @@ public class GitMonitor : Monitor
                                repo.add(add_files_f);
                        } catch(Error e) {
                                failure +=  e.message;
+                               print("Add failed:\n");
                        }  
                        try {
                                 repo.remove(remove_files_f);
                        } catch(Error e) {
                                failure +=  e.message;
+                               print("Remove failed:\n");
                        }  
 
                        this.paused = false;
@@ -507,10 +510,12 @@ public class GitMonitor : Monitor
 
                        } catch(Error e) {
                                failure += e.message;
+                               print("Push failed:\n");
                                
                        }   
                }
                
+               
                // finally merge all the commit messages.
                 
                try {