Throw
The throw module allows you to generate custom error messages in your design system. This is useful for debugging and for providing helpful error messages to users of your design system.
Basic Usage
Throwing an error
Throwing an error is as simple as calling the sentro.throw-error()
mixin with a message, and the file as a parameter.
This will output the following error message in the console:
Throwing a warning
Throwing a warning is as simple as calling the sentro.throw-warn()
mixin with a message, and the file as a parameter.
This will output the following warning message in the console: