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

index ffc6d59..92c2684 100644 (file)
@@ -352,8 +352,11 @@ public class Spawn : Object
         
         
         if (this.cfg.exceptions && this.result != 0) {
-           
-            throw new SpawnError.EXECUTE_ERROR(this.stderr);
+                       
+                       var errstr = this.output;
+                       errstr += errstr.length > 0 ? "\n" : "";
+                       errstr += this.stderr;
+            throw new SpawnError.EXECUTE_ERROR(errstr);
             //this.toString = function() { return this.stderr; };
             ///throw new Exception this; // we throw self...
         }
@@ -363,8 +366,6 @@ public class Spawn : Object
         return;
     
     }
-    
-    
 
     private void tidyup()
     {