2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: adjust FileDelete return value (Forum #76717)

git-svn-id: https://svn.fhem.de/fhem/trunk@15112 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-09-21 07:22:33 +00:00
parent 3746437ef3
commit 938d572ed1

View File

@ -4844,9 +4844,11 @@ FileDelete($)
}
$forceType //= '';
if(configDBUsed() && lc($forceType) ne "file") {
return _cfgDB_Filedelete($fileName);
my $ret = _cfgDB_Filedelete($fileName);
return ($ret ? undef : "$fileName: _cfgDB_Filedelete failed");
} else {
return unlink($fileName);
my $ret = unlink($fileName);
return ($ret ? undef : "$fileName: $!");
}
}