Skip to content

Commit 4568cbb

Browse files
committed
refactor(either): enhance throw error info
1 parent 635f5ff commit 4568cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
};
181181
eitherN = tn:
182182
let
183-
combine = a: b: if b == null then a else "[${a}]: ${b}";
183+
combine = a: b: if a == null then b else "[${a}]: ${b}";
184184
logContexts = map (t: t.logContext or null) tn;
185185
# Function to pair two lists, combining their corresponding elements
186186
pairList = listA: listB: lib.lists.zipListsWith combine listA listB;

0 commit comments

Comments
 (0)