better error handling

This commit is contained in:
Roland Gruber 2006-10-04 18:11:02 +00:00
parent c41b8bb580
commit 19172d0760
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ function lamdaemonSSH($commands) {
return $return; return $return;
} }
} }
else {
$return = array("ERROR," . _('Unable to connect to remote server!') . "," . $_SESSION['config']->scriptServer);
return $return;
}
return array(); return array();
} }