12 lines
135 B
Nix
12 lines
135 B
Nix
msg: {
|
|
actual,
|
|
expected,
|
|
}:
|
|
if actual == expected
|
|
then msg
|
|
else
|
|
throw
|
|
(builtins.toJSON {
|
|
inherit actual expected msg;
|
|
})
|