Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Cloud
MAS
clonemap
Commits
c6b73d57
Commit
c6b73d57
authored
Mar 25, 2021
by
Stefan Dähling
Browse files
fix error handling
parent
759c6fe9
Pipeline
#434879
passed with stages
in 4 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pkg/ams/ams.go
View file @
c6b73d57
...
...
@@ -226,7 +226,11 @@ func (ams *AMS) updateAgentCustom(masID int, agentID int, custom string) (err er
var
httpStatus
int
httpStatus
,
err
=
ams
.
agencyClient
.
PutAgentCustom
(
agentAddress
.
Agency
,
agentID
,
custom
)
if
httpStatus
!=
http
.
StatusOK
||
err
!=
nil
{
err
=
errors
.
New
(
"error updating custom data "
+
err
.
Error
())
if
err
!=
nil
{
err
=
errors
.
New
(
"error updating custom data "
+
err
.
Error
())
}
else
{
err
=
errors
.
New
(
"error updating custom data"
)
}
}
return
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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