mirror of
https://github.com/Luca1991/NDSFactory.git
synced 2026-02-04 05:36:15 +01:00
Implemented better error handling
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <QMessageBox>
|
||||
#include "../../ndsfactory/nfresult.h"
|
||||
|
||||
void notifyExtractionResult(bool result)
|
||||
void notifyExtractionResult(NFResult nfResult)
|
||||
{
|
||||
if (result)
|
||||
if (nfResult.result)
|
||||
{
|
||||
QMessageBox::information(Q_NULLPTR, "NDSFactory", "Extraction completed!");
|
||||
}
|
||||
else
|
||||
{
|
||||
QMessageBox::critical(Q_NULLPTR, "NDSFactory", "Error during the extraction!");
|
||||
QMessageBox::critical(Q_NULLPTR, "NDSFactory", nfResult.message.c_str());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user