From 7f23a7962b759595b5d810242cf24cd58f88df6c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 30 Jul 2016 10:03:33 +0200 Subject: Add TAI clock runtime failure if no cURL available --- src/ClockTAI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp index 787f1f7..afd8025 100644 --- a/src/ClockTAI.cpp +++ b/src/ClockTAI.cpp @@ -183,6 +183,8 @@ int ClockTAI::download_tai_utc_bulletin(const char* url) /* always cleanup */ curl_easy_cleanup(curl); } +#else + throw std::runtime_error("Cannot download TAI Clock information without cURL"); #endif // HAVE_CURL return r; } -- cgit v1.2.3