Commit 8de7477c authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '288812-list-error-classes' into 'master'

Improve error handling in the container registry delete tags service

See merge request gitlab-org/gitlab!51075
parents 92c6d6a2 c8973bbd
......@@ -24,7 +24,7 @@ module Projects
return success(deleted: []) if @tag_names.empty?
delete_tags
rescue => e
rescue TimeoutError, ::Faraday::Error => e
::Gitlab::ErrorTracking.track_exception(e, tags_count: @tag_names&.size, container_repository_id: @container_repository&.id)
error('error while deleting tags', nil, pass_back: { deleted: @deleted_tags, exception_class_name: e.class.name })
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment