Skip to content

Commit

Permalink
decorator: make an error more verbose
Browse files Browse the repository at this point in the history
Without specifying which package could not be found, this error is not
actionable for users.

Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Sep 26, 2022
1 parent fc8c7a2 commit b6f3447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decorator/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (r *FileRestorer) updateImports() error {
}
name, err := r.Resolver.ResolvePackage(path)
if err != nil {
return err
return fmt.Errorf("could not resolve package %s: %w", path, err)
}
resolved[path] = name
}
Expand Down

0 comments on commit b6f3447

Please sign in to comment.