Skip to content

Commit

Permalink
add comment for skipping error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Jul 14, 2023
1 parent 1f3b0c3 commit 89619cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"net"
"os"
"os/signal"
"runtime/debug"
"sync"
"syscall"
"time"
Expand Down Expand Up @@ -174,7 +173,7 @@ func startGoRoutines(wg *sync.WaitGroup) context.CancelFunc {
}
if err := nc.Configure(); err != nil {
slog.Error("error configuring netclient interface", "error", err)
debug.PrintStack()
// needed to prevent exit when there are no peers
if err.Error() == "ioctl: bad address" {
slog.Error("skipping bad error")
} else {
Expand Down

0 comments on commit 89619cf

Please sign in to comment.