mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
server: panic if sendInspector without an inspector
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -315,7 +315,7 @@ pub const Ctx = struct {
|
||||
pub fn sendInspector(self: *Ctx, msg: []const u8) void {
|
||||
if (self.env().getInspector()) |inspector| {
|
||||
inspector.send(self.env(), msg);
|
||||
}
|
||||
} else @panic("Inspector has not been set");
|
||||
}
|
||||
|
||||
inline fn inspectorCtx(ctx_opaque: *anyopaque) *Ctx {
|
||||
|
||||
Reference in New Issue
Block a user