diff --git a/aur_source.go b/aur_source.go index cd9f80630..4f5ce688a 100644 --- a/aur_source.go +++ b/aur_source.go @@ -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 diff --git a/aur_source_test.go b/aur_source_test.go index d627197c4..c88609170 100644 --- a/aur_source_test.go +++ b/aur_source_test.go @@ -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: \n\t \n") + assert.EqualError(t, err, "error downloading sources: \x1b[36m/tmp/yay-bin\x1b[0m \n\t context: \n\t \n") } // GIVEN 5 packages