mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
global-functions: $RmDir: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
09f9826760
commit
86a8919ed2
1 changed files with 3 additions and 3 deletions
|
@ -1052,10 +1052,10 @@
|
|||
:return true;
|
||||
}
|
||||
|
||||
:do {
|
||||
:onerror Err {
|
||||
/file/remove $Dir;
|
||||
} on-error={
|
||||
$LogPrint error $0 ("Removing directory '" . $DirName . "' (" . $Dir . ") failed.");
|
||||
} do={
|
||||
$LogPrint error $0 ("Removing directory '" . $DirName . "' (" . $Dir . ") failed: " . $Err);
|
||||
:return false;
|
||||
}
|
||||
:return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue