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
93f6b911
Commit
93f6b911
authored
Jul 23, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename error_with to error in CreateIssueService
parent
8e7b75b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/services/incident_management/create_issue_service.rb
app/services/incident_management/create_issue_service.rb
+4
-4
No files found.
app/services/incident_management/create_issue_service.rb
View file @
93f6b911
...
...
@@ -10,11 +10,11 @@ module IncidentManagement
end
def
execute
return
error
_with
(
'setting disabled'
)
unless
incident_management_setting
.
create_issue?
return
error
_with
(
'invalid alert'
)
unless
alert
.
valid?
return
error
(
'setting disabled'
)
unless
incident_management_setting
.
create_issue?
return
error
(
'invalid alert'
)
unless
alert
.
valid?
result
=
create_incident
return
error
_with
(
result
.
message
,
result
.
payload
[
:issue
])
unless
result
.
success?
return
error
(
result
.
message
,
result
.
payload
[
:issue
])
unless
result
.
success?
result
end
...
...
@@ -62,7 +62,7 @@ module IncidentManagement
incident_management_setting
.
issue_template_content
end
def
error
_with
(
message
,
issue
=
nil
)
def
error
(
message
,
issue
=
nil
)
log_error
(
%{Cannot create incident issue for "#{project.full_name}": #{message}}
)
ServiceResponse
.
error
(
payload:
{
issue:
issue
},
message:
message
)
...
...
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