nt/nib/panic.nix

5 lines
101 B
Nix
Raw Normal View History

2025-12-18 11:26:47 +10:00
{nib, ...}: {
badType = expect: x:
2025-12-18 11:26:47 +10:00
throw "Expected type ${expect} but got ${nib.typeOf x}.";
}