From 116fd3a6ae5cf09c9e80c3cae760dc5c7511516c Mon Sep 17 00:00:00 2001 From: niansa Date: Wed, 11 Nov 2020 14:40:35 +0000 Subject: [PATCH] Improved safety --- main.cpp | 3 +++ qcommsy | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1e3fee6..3511f3b 100644 --- a/main.cpp +++ b/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 diff --git a/qcommsy b/qcommsy index c3d595f..6f2c928 160000 --- a/qcommsy +++ b/qcommsy @@ -1 +1 @@ -Subproject commit c3d595f68b2e3b96757fd58a450bbd16fd3bc77c +Subproject commit 6f2c9286e2d33462c4f4c2edc62415c556c1714f