Minor corrections
This commit is contained in:
parent
a42e46aaad
commit
dbd2c5bf06
|
@ -153,7 +153,7 @@ class Console extends \Qi_Console_Client
|
||||||
$this->_terminal->do_setaf(2),
|
$this->_terminal->do_setaf(2),
|
||||||
str_pad($left, 20),
|
str_pad($left, 20),
|
||||||
$this->_terminal->do_op(),
|
$this->_terminal->do_op(),
|
||||||
$value,
|
$value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,12 +182,12 @@ class Server
|
||||||
|
|
||||||
public function onWarning($id, $message)
|
public function onWarning($id, $message)
|
||||||
{
|
{
|
||||||
if (strpos($message, "Operation timed out") !== false) {
|
if (strpos($message, "timed out") !== false) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$error = sprintf("Error %s: %s", $id, $message);
|
$error = sprintf("Error %s: %s", $id, $message);
|
||||||
$this->log(Logger::ERROR, "$client_name Closed");
|
$this->log(Logger::ERROR, "Connection Closed");
|
||||||
|
|
||||||
// Something else happened.
|
// Something else happened.
|
||||||
throw new \Exception($error);
|
throw new \Exception($error);
|
||||||
|
|
Loading…
Reference in a new issue