summaryrefslogtreecommitdiff
path: root/process
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-05-25 01:13:33 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-05-25 01:13:33 +0100
commit5831e9ea22c987d762050796297c5080d7745501 (patch)
treef51cdf2da3356bdd03f55b9b79825b5fb549abb4 /process
parentd38431533e517dfa3efc48d219701b25f77289ac (diff)
catch another err
Diffstat (limited to 'process')
-rw-r--r--process/process.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/process/process.go b/process/process.go
index d25164a..b44a586 100644
--- a/process/process.go
+++ b/process/process.go
@@ -22,7 +22,10 @@ func newError() (Process, error) {
}
func new(pidstr string) (Process, error) {
- pid, _ := strconv.Atoi(pidstr)
+ pid, err0 := strconv.Atoi(pidstr)
+ if err0 != nil {
+ return Process{}, err0
+ }
process := Process{Pid: pid}
var rawIo string