You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of @warning when something goes wrong regarding the Sass logic, I'd advise to throw an error with @error. There is no reason to let the script run when there is an error, so you better throw an actual error.
For instance:
@functionext-get-option($option) {
@ifnotmap-has-key($ext-opt, $option) {
@error'The option `#{$option}` is not defined or part of the options.';
}
@returnmap-get($ext-opt, $option);
}
The text was updated successfully, but these errors were encountered:
Instead of
@warn
ing when something goes wrong regarding the Sass logic, I'd advise to throw an error with@error
. There is no reason to let the script run when there is an error, so you better throw an actual error.For instance:
The text was updated successfully, but these errors were encountered: