mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
Notes:
sideshowbarker
2024-07-17 10:20:42 +09:00
Author: https://github.com/gmta
Commit: a39c38840e
Pull-request: https://github.com/SerenityOS/serenity/pull/14245
Reviewed-by: https://github.com/linusg
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