Commit f48959d
authored
internal/nix: fix unredacted error message (#1782)
Don't pass a slice of already-redacted arguments to `redact.Errorf` so
that they're preserved in the regular error message.
Tested by forcing an error and seeing the full message:
```
$ go run ./cmd/devbox shell
Ensuring packages are installed.
✓ Computed the Devbox environment.
Error: nix print-dev-env --json "path:/Users/gcurtis/src/devbox/.devbox/gen/flake": exit status 1
Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetpack-io/devbox/issues
```
Gets redacted in Sentry as:
```
nix print-dev-env --json "path:<redacted string>": <redacted *exec.ExitError>
```1 parent 2018568 commit f48959d
1 file changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 85 | + | |
93 | 86 | | |
94 | 87 | | |
95 | 88 | | |
| |||
0 commit comments