Skip to content
Snippets Groups Projects
Commit 75d92735 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

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!64Fix exception handling
Pipeline #44473 failed
Subproject commit 20e11848df5037c582cee1861738498e8561a2ca
Subproject commit 5615b671230361eb61b05e4872cc5bab616c0638
......@@ -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;
}
});
});
......
Subproject commit 6304f53495f3775044e770d143cb0babf29d7cac
Subproject commit 01bff82a2dd3d9f586f7dfc1aad84e3cf8d6f4a6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment