From d03ad9fe874e8049ea2e524d2ac68fe0e09261be Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Sat, 17 Mar 2018 17:25:57 +0700 Subject: [PATCH 1/2] fixed missed error handling --- daemon_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon_windows.go b/daemon_windows.go index 6c1ffc9..54ca1f0 100644 --- a/daemon_windows.go +++ b/daemon_windows.go @@ -76,7 +76,7 @@ func (windows *windowsRecord) Stop() (string, error) { cmd := exec.Command("sc", "stop", windows.name) err := cmd.Run() if err != nil { - return stopAction + failed, err + return stopAction + failed, getWindowsError(err) } return stopAction + " completed.", nil } From 22972605f506cdbfeb4068f8c6ed5b8c3135d140 Mon Sep 17 00:00:00 2001 From: Igor Dolzhikov Date: Sat, 17 Mar 2018 17:26:25 +0700 Subject: [PATCH 2/2] Bumped version number to 0.10.4 --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index cb62b0d..96e31b5 100644 --- a/daemon.go +++ b/daemon.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. /* -Package daemon 0.10.3 for use with Go (golang) services. +Package daemon 0.10.4 for use with Go (golang) services. Package daemon provides primitives for daemonization of golang services. This package is not provide implementation of user daemon,