projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64d4fb
)
Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:25:16 +0000
(18:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:25:16 +0000
(18:25 +0800)
Spawn.vala
patch
|
blob
|
history
diff --git
a/Spawn.vala
b/Spawn.vala
index
a81920a
..
afe1cad
100644
(file)
--- 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();