From: Alan Knowles Date: Mon, 14 Aug 2017 03:11:31 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=4b2ec713dcb305febbb098b1ac3e129085e62834 Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index ffc6d59a..92c26845 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -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() {