Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
mde
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a1729340
authored
Mar 29, 2017
by
Adi Amir
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
improve error response
parent
369764b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/logic/CiscoManager.java
src/main/java/logic/CiscoManager.java
View file @
a1729340
...
@@ -466,11 +466,11 @@ public class CiscoManager {
...
@@ -466,11 +466,11 @@ public class CiscoManager {
private
BaseRestResponse
errorHttpResponse
(
SimpleHttpResponse
httpResp
)
{
private
BaseRestResponse
errorHttpResponse
(
SimpleHttpResponse
httpResp
)
{
BaseRestResponse
errResp
=
new
BaseRestResponse
(
false
,
null
);
ObjectNode
objectNode
=
objMapper
.
createObjectNode
();
ObjectNode
objectNode
=
objMapper
.
createObjectNode
();
objectNode
.
put
(
"statusCode"
,
httpResp
.
getStatusCode
());
objectNode
.
put
(
"statusCode"
,
httpResp
.
getStatusCode
());
objectNode
.
put
(
"content"
,
httpResp
.
getContent
());
objectNode
.
put
(
"content"
,
httpResp
.
getContent
());
errResp
.
objectNode
=
objectNode
;
BaseRestResponse
errResp
=
new
BaseRestResponse
(
false
,
objectNode
.
toString
())
;
return
errResp
;
return
errResp
;
}
}
...
...
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