netter 0.3.1

Netter is a CLI tool for fast and easy server startup!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "error_handler.h"
#include <QDebug>

void ErrorHandler::showError(const QString& title, const QString& message, QWidget* parent)
{
    ErrorDialog dialog(title, message, parent);
    dialog.exec();
    
    logError(title + ": " + message);
}

void ErrorHandler::logError(const QString& message)
{
    qCritical() << "ERROR:" << message;
    // Здесь можно добавить логирование в файл
}