nt/nib/panic.nix
2025-12-14 22:41:17 +10:00

4 lines
101 B
Nix

{...}: {
badType = expect: x:
throw "Expected type ${expect} but got ${builtins.typeOf x}.";
}