diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-08-15 10:06:23 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-08-15 10:05:32 -0400 |
commit | fa27c55b0593c769b6ad87de0b59df3816d73548 (patch) | |
tree | dc770cf00128f231a6db692a519f0ff9a38546a7 /src/net_permissions.cpp | |
parent | 8fc7f0cba9b1b60ce25d6a8ba51052af1461f825 (diff) |
util: Move ResolveErrMsg to util/error
Diffstat (limited to 'src/net_permissions.cpp')
-rw-r--r-- | src/net_permissions.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net_permissions.cpp b/src/net_permissions.cpp index 736f19293a..ef6c40ce20 100644 --- a/src/net_permissions.cpp +++ b/src/net_permissions.cpp @@ -3,9 +3,10 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <net_permissions.h> +#include <netbase.h> +#include <util/error.h> #include <util/system.h> #include <util/translation.h> -#include <netbase.h> // The parse the following format "perm1,perm2@xxxxxx" bool TryParsePermissionFlags(const std::string str, NetPermissionFlags& output, size_t& readen, std::string& error) @@ -71,7 +72,7 @@ bool NetWhitebindPermissions::TryParse(const std::string str, NetWhitebindPermis const std::string strBind = str.substr(offset); CService addrBind; if (!Lookup(strBind.c_str(), addrBind, 0, false)) { - error = strprintf(_("Cannot resolve -%s address: '%s'").translated, "whitebind", strBind); + error = ResolveErrMsg("whitebind", strBind); return false; } if (addrBind.GetPort() == 0) { |