mkAssert
lib.modules.mkAssert
Docs pulled from | This Revision | about 1 hour ago
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
Implementation
The following is the current implementation of this function.
assertion: message: content:
mkIf (if assertion then true else throw "\nFailed assertion: ${message}") content