1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:47:45 +00:00

IPCCompiler+LibIPC: Propagate IPC encoder errors

This propagates errors from user-defined encoders up to IPC::Connection.
There, we currently just log the error, as we aren't in a position to
propagate it further (i.e. we are inside a deferred invocation).
This commit is contained in:
Timothy Flynn 2023-01-01 23:58:49 -05:00 committed by Andreas Kling
parent ab99ed5fba
commit 8b7b03b369
4 changed files with 22 additions and 16 deletions

View file

@ -25,7 +25,7 @@ public:
virtual u32 magic() const = 0;
virtual DeprecatedString name() const = 0;
virtual OwnPtr<MessageBuffer> handle(Message const&) = 0;
virtual ErrorOr<OwnPtr<MessageBuffer>> handle(Message const&) = 0;
protected:
Stub() = default;