2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

98_configdb.pm: add error message, type fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@11729 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2016-07-02 11:25:31 +00:00
parent b1f6ac45c6
commit 5f9d1b5df0

View File

@ -121,7 +121,7 @@ sub CommandConfigdb($$) {
}
when ('filedelete') {
return "\n Syntax: configdb fileexport <pathToFile>" if @a != 2;
return "\n Syntax: configdb filedelete <pathToFile>" if @a != 2;
my $filename;
if($param1 =~ m,^[./],) {
$filename = $param1;
@ -188,6 +188,7 @@ sub CommandConfigdb($$) {
}
when ('fileshow') {
return "\n Syntax: configdb fileshow <pathToFile>" if @a != 2;
my @rets = cfgDB_FileRead($param1);
my $r = (int(@rets)) ? join "\n",@rets : "File $param1 not found in database.";
return $r;
@ -218,7 +219,8 @@ sub CommandConfigdb($$) {
}
when ('reorg') {
$param1 = $param1 ? $param1 : 3;
# $param1 = $param1 ? $param1 : 3;
$param1 //= 3;
Log3('configdb', 4, "configdb: reorg requested with keep: $param1.");
$ret = _cfgDB_Reorg($a[1]);
}