Skip to content

Commit 5115dfc

Browse files
committed
improve the error string
1 parent 0f0c0be commit 5115dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/packages/package_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func LinkToRepository(ctx context.Context, pkg *packages_model.Package, repo *re
3333
}
3434

3535
if err := packages_model.SetRepositoryLink(ctx, pkg.ID, repo.ID); err != nil {
36-
return fmt.Errorf("error updating package: %w", err)
36+
return fmt.Errorf("error while linking package '%v' to repo '%v' : %w", pkg.Name, repo.FullName(), err)
3737
}
3838
return nil
3939
}

0 commit comments

Comments
 (0)