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