diff --git a/register_unix.go b/register_unix.go index fb860ee..f9e35c9 100644 --- a/register_unix.go +++ b/register_unix.go @@ -11,13 +11,13 @@ import ( ) // RegisterApp is not supported on non-Windows platforms. -func RegisterApp() { - fmt.Println("[WARN] RegisterApp() is only available on Windows") +func RegisterApp() error { + return fmt.Errorf("[WARN] RegisterApp() is only available on Windows") } // UnregisterApp is not supported on non-Windows platforms. -func UnregisterApp() { - fmt.Println("[WARN] UnregisterApp() is only available on Windows") +func UnregisterApp() error { + return fmt.Errorf("[WARN] UnregisterApp() is only available on Windows") } // IsRegistered returns true if the application is detected as installed.