mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
refactor: Change Node::initError to take bilingual_str
Make it consistent with `Chain::initError`.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user