mirror of
https://github.com/asmogo/nws.git
synced 2025-01-18 18:11:33 +00:00
improve error handling and messaging
This commit is contained in:
parent
a8d3de5a93
commit
bedd0c5ec6
@ -119,7 +119,7 @@ func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit {
|
||||
}
|
||||
err = exit.announceExitNode(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
slog.Error("failed to announce exit node", "error", err)
|
||||
}
|
||||
return exit
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
|
||||
const ten = 10
|
||||
|
||||
var errNoPublicKey = errors.New("no public key found")
|
||||
var errNoPublicKey = errors.New("no public configuration")
|
||||
|
||||
func (e *Exit) announceExitNode(ctx context.Context) error {
|
||||
if !e.config.Public {
|
||||
|
Loading…
Reference in New Issue
Block a user