From a876fcab1892a5bfeaeba09e1ddcc2f2de3c7273 Mon Sep 17 00:00:00 2001 From: Matt Mackay Date: Thu, 16 Dec 2021 09:25:42 -0500 Subject: [PATCH] fix(gazelle): include file path in manifest parsing error message (#579) --- gazelle/configure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazelle/configure.go b/gazelle/configure.go index 64c2b51404..8e71110d0a 100644 --- a/gazelle/configure.go +++ b/gazelle/configure.go @@ -154,11 +154,11 @@ func (py *Configurer) loadGazelleManifest(gazelleManifestPath string) (*manifest if os.IsNotExist(err) { return nil, nil } - return nil, fmt.Errorf("failed to load Gazelle manifest: %w", err) + return nil, fmt.Errorf("failed to load Gazelle manifest at %q: %w", gazelleManifestPath, err) } manifestFile := new(manifest.File) if err := manifestFile.Decode(gazelleManifestPath); err != nil { - return nil, fmt.Errorf("failed to load Gazelle manifest: %w", err) + return nil, fmt.Errorf("failed to load Gazelle manifest at %q: %w", gazelleManifestPath, err) } return manifestFile.Manifest, nil }