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
|
@ -60,7 +60,9 @@ const FileListType = enum {
|
|||
find_in_files,
|
||||
};
|
||||
|
||||
pub fn create(allocator: std.mem.Allocator) !Widget {
|
||||
pub const CreateError = error{ OutOfMemory, ThespianSpawnFailed };
|
||||
|
||||
pub fn create(allocator: std.mem.Allocator) CreateError!Widget {
|
||||
const self = try allocator.create(Self);
|
||||
self.* = .{
|
||||
.allocator = allocator,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue