mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 15:41:48 +00:00
Fix sendError message's format
This commit is contained in:
@@ -733,8 +733,7 @@ pub fn Command(comptime CDP_T: type, comptime Sender: type) type {
|
||||
pub fn sendError(self: *Self, code: i32, message: []const u8) !void {
|
||||
return self.sender.sendJSON(.{
|
||||
.id = self.input.id,
|
||||
.code = code,
|
||||
.message = message,
|
||||
.@"error" = .{ .code = code, .message = message },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user