mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
core: allow cli actions to use arg parsing diagnostics
This commit is contained in:
@ -126,7 +126,7 @@ pub fn parse(
|
||||
|
||||
// The error set is dependent on comptime T, so we always add
|
||||
// an extra error so we can have the "else" below.
|
||||
const ErrSet = @TypeOf(err) || error{Unknown};
|
||||
const ErrSet = @TypeOf(err) || error{ Unknown, OutOfMemory };
|
||||
const message: [:0]const u8 = switch (@as(ErrSet, @errorCast(err))) {
|
||||
// OOM is not recoverable since we need to allocate to
|
||||
// track more error messages.
|
||||
|
Reference in New Issue
Block a user