Skip to content

Commit a371d0c

Browse files
authored
[easy][minor fix] add error object to error message's format string inputs (#1307)
1 parent 933fcc6 commit a371d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/nix/nixprofile/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func parseNixProfileListItem(line string) (*NixProfileListItem, error) {
135135
}
136136
index, err := strconv.Atoi(scanner.Text())
137137
if err != nil {
138-
return nil, redact.Errorf("error parsing \"nix profile list\" output: %w: %s", line)
138+
return nil, redact.Errorf("error parsing \"nix profile list\" output: %w: %s", err, line)
139139
}
140140

141141
if !scanner.Scan() {

0 commit comments

Comments
 (0)