diff irccdctl/cli.cpp @ 542:80c3caafe9d3

Common: rename network_error to network_errc
author David Demelier <markand@malikania.fr>
date Tue, 21 Nov 2017 12:29:50 +0100
parents 9daccaeedcce
children 7051034bf2ee
line wrap: on
line diff
--- a/irccdctl/cli.cpp	Mon Nov 20 19:35:58 2017 +0100
+++ b/irccdctl/cli.cpp	Tue Nov 21 12:29:50 2017 +0100
@@ -18,8 +18,8 @@
 
 #include <boost/system/system_error.hpp>
 
-#include <irccd/errors.hpp>
 #include <irccd/json_util.hpp>
+#include <irccd/network_errc.hpp>
 #include <irccd/options.hpp>
 #include <irccd/string_util.hpp>
 
@@ -45,7 +45,7 @@
         }
 
         if (message["error"].is_number_integer())
-            throw boost::system::system_error(static_cast<network_error>(message["error"].template get<int>()));
+            throw boost::system::system_error(static_cast<network_errc>(message["error"].template get<int>()));
         if (message["error"].is_string())
             throw std::runtime_error(message["error"].template get<std::string>());