mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:57:24 +00:00
UI: FortSettings: Improve error reporting.
This commit is contained in:
parent
f198506462
commit
df199fa150
@ -197,8 +197,12 @@ bool FortSettings::writeConf(const FirewallConf &conf)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!(FileUtil::removeFile(filePath)
|
||||
&& FileUtil::copyFile(backupFilePath, filePath))) {
|
||||
if (!FileUtil::removeFile(filePath)) {
|
||||
setErrorMessage(tr("Can't remove .conf file"));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!FileUtil::copyFile(backupFilePath, filePath)) {
|
||||
setErrorMessage(tr("Can't create .conf file"));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user