mirror of
https://gitlab.com/niansa/commsy-rest.git
synced 2025-03-06 20:48:27 +01:00
Improved safety
This commit is contained in:
parent
87277f2f8d
commit
116fd3a6ae
2 changed files with 4 additions and 1 deletions
3
main.cpp
3
main.cpp
|
@ -36,6 +36,9 @@ int main() {
|
|||
} catch (std::invalid_argument&) {
|
||||
resStr = "invalidNumber";
|
||||
resCode = HttpStatusCode::k400BadRequest;
|
||||
} catch (libCommsy::scrapError&) {
|
||||
resStr = "scrapError";
|
||||
resCode = HttpStatusCode::k500InternalServerError;
|
||||
}
|
||||
|
||||
// Generate JSON
|
||||
|
|
2
qcommsy
2
qcommsy
|
@ -1 +1 @@
|
|||
Subproject commit c3d595f68b2e3b96757fd58a450bbd16fd3bc77c
|
||||
Subproject commit 6f2c9286e2d33462c4f4c2edc62415c556c1714f
|
Loading…
Add table
Reference in a new issue