From 82b10ec284ff7e965c6ac1242f0cc5f331529130 Mon Sep 17 00:00:00 2001 From: Arran Walker Date: Thu, 10 Jun 2021 12:42:10 +0100 Subject: [PATCH] service(darwin): fix status regression (#273) Co-authored-by: Arran Walker --- service_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_darwin.go b/service_darwin.go index 88e46ce..237d790 100644 --- a/service_darwin.go +++ b/service_darwin.go @@ -186,7 +186,7 @@ func (s *darwinLaunchdService) Uninstall() error { func (s *darwinLaunchdService) Status() (Status, error) { exitCode, out, err := runWithOutput("launchctl", "list", s.Name) if exitCode == 0 && err != nil { - if !strings.Contains(err.Error(), "failed with StandardError") { + if !strings.Contains(err.Error(), "failed with stderr") { return StatusUnknown, err } }