From: Alan Knowles Date: Fri, 2 May 2014 10:25:16 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=f36556d71774bc2c33e28ce41296393f39f3eee0 Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index a81920af..afe1cad9 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -100,6 +100,10 @@ public class SpawnConfig { } +errordomain SpawnError { + NO_ARGS +} + /** * @class Spawn * @param cfg {SpawnConfig} settings - see properties. @@ -132,7 +136,7 @@ public class Spawn : Object this.cfg.cwd = this.cfg.cwd.length < 1 ? GLib.Environment.get_home_dir() : this.cfg.cwd; if (this.cfg.args.length < 0) { - throw new Error("No arguments"); + throw new SpawnError.NO_ARGS("No arguments"); } this.run();