Skip to content

Commit aac960b

Browse files
committed
Update error message returned when monitor fails to start
1 parent a9d3e31 commit aac960b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

internal/errors.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ var (
1919
ErrAlreadyLoggedIn = errors.New("you are already logged in")
2020
// ErrNotLoggedIn is returned when the caller is expected to be logged in
2121
// but is not
22-
ErrNotLoggedIn = errors.New("you are not logged in")
23-
// TODO: Update message
24-
ErrMonitorFailed = errors.New("monitor failed")
22+
ErrNotLoggedIn = errors.New("you are not logged in")
2523
ErrVirtualServerSelected = errors.New(SpecifiedServerIsVirtualLocation)
24+
ErrMonitorFailed = errors.New(MonitorFailed)
2625
)

internal/message.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ const (
3030

3131
// Error message when the server is a virtual location, but user has virtual-location off
3232
SpecifiedServerIsVirtualLocation = "Please enable virtual location access to connect to this server."
33+
34+
// MonitorFailed is an error message for error returned when
35+
// nordfileshare process monitor fails to start during enabling meshnet
36+
MonitorFailed = "We encountered an issue activating Meshnet because one of our safety feature did not initialize correctly."
3337
)

0 commit comments

Comments
 (0)