MCPcopy Index your code
hub / github.com/jetify-com/devbox / Redact

Method Redact

internal/nix/store.go:122–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func (e *DaemonError) Redact() string {
123 // Don't include e.stderr in redacted messages because it can contain
124 // things like paths and usernames.
125 if e.cmd != "" {
126 return fmt.Sprintf("command %s: %s", e.cmd, e.err)
127 }
128 return e.err.Error()
129}
130
131// DaemonVersion returns the version of the currently running Nix daemon.
132func DaemonVersion(ctx context.Context) (string, error) {

Callers 1

ErrorMethod · 0.95

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected