feat: use explicit error handling for all startup errors
This commit is contained in:
parent
fc3224137d
commit
a1b2737c5d
12 changed files with 116 additions and 50 deletions
|
@ -35,7 +35,7 @@ pub fn create(allocator: std.mem.Allocator, parent: Plane, event_handler: ?Event
|
|||
};
|
||||
logview.init(allocator);
|
||||
try tui.message_filters().add(MessageFilter.bind(self, receive_log));
|
||||
try log.subscribe();
|
||||
log.subscribe() catch return error.WidgetInitFailed;
|
||||
return Widget.to(self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue