Skip to content

Commit

Permalink
fix failing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Nov 13, 2022
1 parent d785122 commit fd46fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aur_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func downloadPKGBUILDSource(ctx context.Context,
err := cmdBuilder.Show(
cmdBuilder.BuildMakepkgCmd(ctx, pkgBuildDir, args...))
if err != nil {
return ErrDownloadSource{inner: err}
return ErrDownloadSource{inner: err, pkgName: pkgBuildDir}
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion aur_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Test_downloadPKGBUILDSourceError(t *testing.T) {
}
err := downloadPKGBUILDSource(context.TODO(), cmdBuilder, filepath.Join("/tmp", "yay-bin"), false)
assert.Error(t, err)
assert.EqualError(t, err, "error downloading sources: \x1b[36myay-bin\x1b[0m \n\t context: <nil> \n\t \n")
assert.EqualError(t, err, "error downloading sources: \x1b[36m/tmp/yay-bin\x1b[0m \n\t context: <nil> \n\t \n")
}

// GIVEN 5 packages
Expand Down

0 comments on commit fd46fa0

Please sign in to comment.