Skip to content

Commit

Permalink
Add error message in panic
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Nov 10, 2024
1 parent b740bf5 commit 410b565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dot/sync/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package sync

import (
"fmt"
"slices"
"time"

Expand Down Expand Up @@ -60,7 +61,7 @@ type WarpSyncConfig struct {
func NewWarpSyncStrategy(cfg *WarpSyncConfig) *WarpSyncStrategy {
authorities, err := cfg.WarpSyncProvider.CurrentAuthorities()
if err != nil {
panic("failed to get current authorities")
panic(fmt.Sprintf("failed to get current authorities %s", err))
}

return &WarpSyncStrategy{
Expand Down

0 comments on commit 410b565

Please sign in to comment.