Skip to content

Commit

Permalink
optimized sync panic output (#2542)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored and pull[bot] committed Mar 11, 2024
1 parent b407cac commit 1051137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ func matchKey(rules []rule, key string) bool {
suffix := suffixForPattern(prefix+s, rule.pattern)
ok, err := path.Match(rule.pattern, suffix)
if err != nil {
panic(fmt.Sprintf("match %s with %s: %v", rule.pattern, suffix, err))
logger.Fatalf("match %s with %s: %v", rule.pattern, suffix, err)
}
if ok {
if rule.include {
Expand Down

0 comments on commit 1051137

Please sign in to comment.