Skip to content

Commit

Permalink
Update error message returned when monitor fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
devzbysiu committed Dec 17, 2024
1 parent a9d3e31 commit aac960b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
4 changes: 4 additions & 0 deletions internal/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)

0 comments on commit aac960b

Please sign in to comment.