diff --git a/src/timer_oro_api.cpp b/src/timer_oro_api.cpp index 45e4a75..b94f959 100644 --- a/src/timer_oro_api.cpp +++ b/src/timer_oro_api.cpp @@ -93,7 +93,7 @@ inline void TimerOroApi::fetch_data (bool with_raw) { if (429 == status_code) { } else { - throw err; + this->set_exception(std::current_exception()); } } #endif