MCPcopy
hub / github.com/syncthing/syncthing / Error

Function Error

internal/slogutil/slogvalues.go:19–24  ·  view source on GitHub ↗
(err any)

Source from the content-addressed store, hash-verified

17}
18
19func Error(err any) slog.Attr {
20 if err == nil {
21 return slog.Attr{}
22 }
23 return slog.Any("error", err)
24}
25
26func FilePath(path string) slog.Attr {
27 return slog.String("path", path)

Callers 15

verifyExistingLockedMethod · 0.92
acquireNewLockedMethod · 0.92
ServeMethod · 0.92
sendFailureReportsFunction · 0.92
serveMethod · 0.92
handleInvitationsMethod · 0.92
handleConnsMethod · 0.92
handleHellosMethod · 0.92
resolveDialTargetsMethod · 0.92
CommitConfigurationMethod · 0.92
serveMethod · 0.92
serveMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected