From 5831e9ea22c987d762050796297c5080d7745501 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (europa)" Date: Mon, 25 May 2015 01:13:33 +0100 Subject: catch another err --- process/process.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'process') 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 -- cgit v1.2.3