Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c8973bbd
Commit
c8973bbd
authored
Jan 07, 2021
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly list the error classes that are rescued
parent
1b6d1a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/services/projects/container_repository/gitlab/delete_tags_service.rb
...ojects/container_repository/gitlab/delete_tags_service.rb
+1
-1
No files found.
app/services/projects/container_repository/gitlab/delete_tags_service.rb
View file @
c8973bbd
...
@@ -24,7 +24,7 @@ module Projects
...
@@ -24,7 +24,7 @@ module Projects
return
success
(
deleted:
[])
if
@tag_names
.
empty?
return
success
(
deleted:
[])
if
@tag_names
.
empty?
delete_tags
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
)
::
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
})
error
(
'error while deleting tags'
,
nil
,
pass_back:
{
deleted:
@deleted_tags
,
exception_class_name:
e
.
class
.
name
})
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment