1
0
Fork 0
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:
niansa 2020-11-11 14:40:35 +00:00
parent 87277f2f8d
commit 116fd3a6ae
No known key found for this signature in database
GPG key ID: 77CD5505A61493C8
2 changed files with 4 additions and 1 deletions

View file

@ -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

@ -1 +1 @@
Subproject commit c3d595f68b2e3b96757fd58a450bbd16fd3bc77c
Subproject commit 6f2c9286e2d33462c4f4c2edc62415c556c1714f