update error handling (#41)

This commit is contained in:
asmogo 2024-09-01 21:31:49 +02:00 committed by GitHub
parent ce11bb963a
commit 129c8fc55a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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 {