lib/scss_lint/runner.rb in scss-lint-0.22.0 vs lib/scss_lint/runner.rb in scss-lint-0.23.0

- old
+ new

@@ -41,17 +41,17 @@ begin linter.run(engine, config.linter_options(linter)) rescue => error raise LinterError, - "#{linter.class} raised unexpected error linting file #{file}: " << + "#{linter.class} raised unexpected error linting file #{file}: " \ "'#{error.message}'", error.backtrace end end rescue Sass::SyntaxError => ex - @lints << Lint.new(ex.sass_filename, ex.sass_line, ex.to_s, :error) + @lints << Lint.new(ex.sass_filename, Location.new(ex.sass_line), ex.to_s, :error) rescue FileEncodingError => ex - @lints << Lint.new(file, 1, ex.to_s, :error) + @lints << Lint.new(file, Location.new, ex.to_s, :error) end end end