lib/scss_lint/cli.rb in scss_lint-0.46.0 vs lib/scss_lint/cli.rb in scss_lint-0.47.0
- old
+ new
@@ -16,10 +16,11 @@
unavailable: 69, # Required library is unavailable
software: 70, # Internal software error
config: 78, # Configuration error
no_files: 80, # No files matched by specified glob patterns
plugin: 82, # Plugin loading error
+ preprocessor: 84, # Preprocessor error
}.freeze
# Create a CLI that outputs to the specified logger.
#
# @param logger [SCSSLint::Logger]
@@ -104,9 +105,12 @@
log.error exception.message
halt :no_input
when NoSuchLinter
log.error exception.message
halt :usage
+ when SCSSLint::Exceptions::PreprocessorError
+ log.error exception.message
+ halt :preprocessor
else
config_file = relevant_configuration_file(options) if options
log.bold_error exception.message
log.error exception.backtrace.join("\n")