改名
This commit is contained in:
@@ -48,7 +48,7 @@ abstract class Callback extends Application
|
||||
$event->offName(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
$this->eventNotify($message, $event);
|
||||
} catch (\Throwable $exception) {
|
||||
$this->error($exception->getMessage());
|
||||
$this->addError($exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ abstract class Callback extends Application
|
||||
$mail->AltBody = $message;
|
||||
$mail->send();
|
||||
} catch (\Throwable $e) {
|
||||
$this->addError($e->getMessage(), 'email');
|
||||
$this->addError($e, 'email');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ class OnHandshake extends Callback
|
||||
}
|
||||
return $node->dispatch($request, $response);
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($exception->getMessage() . ' ' . $exception->getFile() . ' ' . $exception->getLine());
|
||||
$this->addError($exception);
|
||||
return $this->disconnect($response, 500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class OnMessage extends Callback
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($exception->getMessage(), 'websocket');
|
||||
$this->addError($exception, 'websocket');
|
||||
$server->send($frame->fd, $exception->getMessage());
|
||||
} finally {
|
||||
fire(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
|
||||
@@ -212,7 +212,7 @@ class Node extends Application
|
||||
return [$reflect->newInstance(), $action];
|
||||
} catch (Throwable $exception) {
|
||||
$this->_error = $exception->getMessage();
|
||||
$this->error($exception->getMessage(), 'router');
|
||||
$this->error($exception, 'router');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -610,7 +610,7 @@ class Router extends Application implements RouterInterface
|
||||
$router = $this;
|
||||
include_once "{$files}";
|
||||
} catch (\Throwable $exception) {
|
||||
$this->error($exception->getMessage());
|
||||
$this->error($exception);
|
||||
} finally {
|
||||
if (isset($exception)) {
|
||||
unset($exception);
|
||||
|
||||
Reference in New Issue
Block a user