Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-nrf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-nrf
Commits
75d92735
Commit
75d92735
authored
11 months ago
by
Tien-Thinh Nguyen
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_exception_handling' into 'develop'
Fix exception handling See merge request
!64
parents
759a0ef7
a439eba6
No related branches found
No related tags found
1 merge request
!64
Fix exception handling
Pipeline
#44473
failed
11 months ago
Stage: external
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci-scripts/common
+1
-1
1 addition, 1 deletion
ci-scripts/common
src/api-server/nrf-http2-server.cpp
+24
-0
24 additions, 0 deletions
src/api-server/nrf-http2-server.cpp
src/common-src
+1
-1
1 addition, 1 deletion
src/common-src
with
26 additions
and
2 deletions
common
@
5615b671
Compare
20e11848
...
5615b671
Subproject commit
20e11848df5037c582cee1861738498e8561a2ca
Subproject commit
5615b671230361eb61b05e4872cc5bab616c0638
This diff is collapsed.
Click to expand it.
src/api-server/nrf-http2-server.cpp
+
24
−
0
View file @
75d92735
...
...
@@ -88,6 +88,12 @@ void nrf_http2_server::start() {
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
catch
(
std
::
exception
&
e
)
{
Logger
::
nrf_sbi
().
warn
(
"error: %s!"
,
e
.
what
());
response
.
write_head
(
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
});
});
...
...
@@ -141,6 +147,12 @@ void nrf_http2_server::start() {
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
catch
(
std
::
exception
&
e
)
{
Logger
::
nrf_sbi
().
warn
(
"error: %s!"
,
e
.
what
());
response
.
write_head
(
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
});
});
...
...
@@ -184,6 +196,12 @@ void nrf_http2_server::start() {
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
catch
(
std
::
exception
&
e
)
{
Logger
::
nrf_sbi
().
warn
(
"error: %s!"
,
e
.
what
());
response
.
write_head
(
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
});
});
...
...
@@ -228,6 +246,12 @@ void nrf_http2_server::start() {
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
catch
(
std
::
exception
&
e
)
{
Logger
::
nrf_sbi
().
warn
(
"error: %s!"
,
e
.
what
());
response
.
write_head
(
http_status_code_e
::
HTTP_STATUS_CODE_400_BAD_REQUEST
);
response
.
end
();
return
;
}
});
});
...
...
This diff is collapsed.
Click to expand it.
common-src
@
01bff82a
Compare
6304f534
...
01bff82a
Subproject commit
6304f53495f3775044e770d143cb0babf29d7cac
Subproject commit
01bff82a2dd3d9f586f7dfc1aad84e3cf8d6f4a6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment