lib/slim_lint/engine.rb in slim_lint-0.16.1 vs lib/slim_lint/engine.rb in slim_lint-0.17.0

- old
+ new

@@ -30,16 +30,16 @@ # # @param source [String] source code to parse # @return [SlimLint::Sexp] parsed Sexp def parse(source) call(source) - rescue ::Slim::Parser::SyntaxError => ex + rescue ::Slim::Parser::SyntaxError => e # Convert to our own exception type to isolate from upstream changes - error = SlimLint::Exceptions::ParseError.new(ex.error, - ex.file, - ex.line, - ex.lineno, - ex.column) + error = SlimLint::Exceptions::ParseError.new(e.error, + e.file, + e.line, + e.lineno, + e.column) raise error end end end