mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibIPC: Make noise when shutting down because of an error
Previously, an IPC connection error could shut down the entire process without giving a hint as to what's wrong. Now, we report that error to the debug console.
This commit is contained in:
parent
1f736ced08
commit
a39c38840e
3 changed files with 11 additions and 7 deletions
|
@ -52,9 +52,9 @@ public:
|
|||
this->shutdown();
|
||||
}
|
||||
|
||||
void shutdown_with_error(Error const& error)
|
||||
virtual void shutdown_with_error(Error const& error) override
|
||||
{
|
||||
dbgln("{} (id={}) had error ({}), disconnecting.", *this, m_client_id, error);
|
||||
dbgln("{} (id={}) had an error ({}), disconnecting.", *this, m_client_id, error);
|
||||
this->shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue