MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ErrorSettingsWrite

Function ErrorSettingsWrite

src/qt/bitcoin.cpp:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static void ErrorSettingsWrite(const bilingual_str& error, const std::vector<std::string>& details)
174{
175 QMessageBox messagebox(QMessageBox::Critical, CLIENT_NAME, QString::fromStdString(strprintf("%s.", error.translated)), QMessageBox::Ok);
176 /*: Explanatory text shown on startup when the settings file could not be written.
177 Prompts user to check that we have the ability to write to the file.
178 Explains that the user has the option of running without a settings file.*/
179 messagebox.setInformativeText(QObject::tr("A fatal error occurred. Check that settings file is writable, or try running with -nosettings."));
180 messagebox.setDetailedText(QString::fromStdString(MakeUnorderedList(details)));
181 messagebox.setTextFormat(Qt::PlainText);
182 messagebox.setDefaultButton(QMessageBox::Ok);
183 messagebox.exec();
184}
185
186/* qDebug() message handler --> debug.log */
187void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg)

Callers 1

GuiMainFunction · 0.85

Calls 2

MakeUnorderedListFunction · 0.85
execMethod · 0.80

Tested by

no test coverage detected