Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/tri/tri_history.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ pub const History = struct {
}

// Save to file
self.save() catch {};
self.save() catch |err| {
std.log.debug("history save: {s}", .{@errorName(err)});
};
}

/// Navigate to previous command
Expand Down Expand Up @@ -252,7 +254,9 @@ pub const ReplHistory = struct {

/// Load history from file
pub fn load(self: *ReplHistory) !void {
self.history.load() catch {};
self.history.load() catch |err| {
std.log.debug("history load: {s}", .{@errorName(err)});
};
}

/// Save current input and clear
Expand Down Expand Up @@ -312,7 +316,9 @@ pub const ReplHistory = struct {

/// Save history before exit
pub fn saveBeforeExit(self: *ReplHistory) void {
self.history.save() catch {};
self.history.save() catch |err| {
std.log.debug("history save: {s}", .{@errorName(err)});
};
}
};

Expand Down
Loading