Catch CURLExceptions from curl_wrapper.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f448e72df1
commit
c47aac8dd2
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include "config.hpp"
|
||||
#include "curl_wrapper.hpp"
|
||||
#include "document.hpp"
|
||||
#include "exceptions.hpp"
|
||||
#include "mastoapi.hpp"
|
||||
|
@ -124,6 +125,11 @@ int run(const string_view profile_name, const bool dry_run)
|
|||
cerr << e.what() << '\n';
|
||||
return error::network;
|
||||
}
|
||||
catch (const curl_wrapper::CURLException &e)
|
||||
{
|
||||
cerr << e.what() << '\n';
|
||||
return error::network;
|
||||
}
|
||||
catch (const Json::RuntimeError &e)
|
||||
{
|
||||
cerr << "JSON error:\n" << e.what() << '\n';
|
||||
|
|
Loading…
Reference in New Issue
Block a user