1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +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

@ -54,7 +54,7 @@ public:
virtual int message_id() const = 0;
virtual char const* message_name() const = 0;
virtual bool valid() const = 0;
virtual MessageBuffer encode() const = 0;
virtual ErrorOr<MessageBuffer> encode() const = 0;
protected:
Message() = default;