From aac960bcc04c8c8bce69ee6ebf68ffc30392e2d1 Mon Sep 17 00:00:00 2001 From: Bartosz Zbytniewski Date: Tue, 17 Dec 2024 12:20:47 +0100 Subject: [PATCH] Update error message returned when monitor fails to start --- internal/errors.go | 5 ++--- internal/message.go | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/errors.go b/internal/errors.go index 8f15bd2f..c16ca1c9 100644 --- a/internal/errors.go +++ b/internal/errors.go @@ -19,8 +19,7 @@ var ( ErrAlreadyLoggedIn = errors.New("you are already logged in") // ErrNotLoggedIn is returned when the caller is expected to be logged in // but is not - ErrNotLoggedIn = errors.New("you are not logged in") - // TODO: Update message - ErrMonitorFailed = errors.New("monitor failed") + ErrNotLoggedIn = errors.New("you are not logged in") ErrVirtualServerSelected = errors.New(SpecifiedServerIsVirtualLocation) + ErrMonitorFailed = errors.New(MonitorFailed) ) diff --git a/internal/message.go b/internal/message.go index 1a1dfd30..46e8d111 100644 --- a/internal/message.go +++ b/internal/message.go @@ -30,4 +30,8 @@ const ( // Error message when the server is a virtual location, but user has virtual-location off SpecifiedServerIsVirtualLocation = "Please enable virtual location access to connect to this server." + + // MonitorFailed is an error message for error returned when + // nordfileshare process monitor fails to start during enabling meshnet + MonitorFailed = "We encountered an issue activating Meshnet because one of our safety feature did not initialize correctly." )