2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 11:16:36 +00:00

Display the error message when editing the fhem.cfg

git-svn-id: https://svn.fhem.de/fhem/trunk@1238 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-02-06 16:28:20 +00:00
parent 587ce00cf7
commit 365d0956b9

@ -1525,8 +1525,9 @@ FW_style($$)
binmode (FH);
print FH $FW_data;
close(FH);
FW_style("style list", "Saved the file $fName");
FW_fC("rereadcfg") if($fName eq $attr{global}{configfile});
my $ret = FW_fC("rereadcfg") if($fName eq $attr{global}{configfile});
$ret = ($ret ? "<h3>ERROR:</h3><b>$ret</b>" : "Saved the file $fName");
FW_style("style list", $ret);
}
}