diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-06-05 14:42:12 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-06-09 15:40:02 +0200 |
commit | 6fe989054f0ad9308e8a25f7123d9e5dd67f1164 (patch) | |
tree | 4c6df59c0556bdd3ae642586572ae5a99cccaf02 /src/interfaces | |
parent | 425e7cb8cf6140e03802a96d2be9a8b4aa2e244a (diff) |
refactor: Change Node::initError to take bilingual_str
Make it consistent with `Chain::initError`.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/node.cpp | 2 | ||||
-rw-r--r-- | src/interfaces/node.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index bd1b36fea5..7995d8d7b0 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -56,7 +56,7 @@ namespace { class NodeImpl : public Node { public: - void initError(const std::string& message) override { InitError(Untranslated(message)); } + void initError(const bilingual_str& message) override { InitError(message); } bool parseParameters(int argc, const char* const argv[], std::string& error) override { return gArgs.ParseParameters(argc, argv, error); diff --git a/src/interfaces/node.h b/src/interfaces/node.h index 0b7fb6736a..fad84789cc 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -45,7 +45,7 @@ public: virtual ~Node() {} //! Send init error. - virtual void initError(const std::string& message) = 0; + virtual void initError(const bilingual_str& message) = 0; //! Set command line arguments. virtual bool parseParameters(int argc, const char* const argv[], std::string& error) = 0; |