From: Alan Knowles Date: Mon, 14 Aug 2017 03:25:41 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=c9c472601aea04702b2a0b50c0426dd8de96e90e Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index d9f16970..c99f962d 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -356,11 +356,13 @@ public class Spawn : Object var errstr = this.output; errstr += errstr.length > 0 ? "\n" : ""; errstr += this.stderr; + print("Throwing execute error:%s\n", errstr); throw new SpawnError.EXECUTE_ERROR(errstr); //this.toString = function() { return this.stderr; }; ///throw new Exception this; // we throw self... } + // finally throw, or return self.. return; @@ -457,7 +459,9 @@ public class Spawn : Object return false; } - + if (buffer == null) { + return false; + } print("got buffer of %s\n", buffer); // print('status: ' +JSON.stringify(status)); // print(JSON.stringify(x));