Skip to content

Commit

Permalink
Fix error handling in FakeLetMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
lekemula committed Jun 12, 2024
1 parent 6ffa6da commit a5e1aa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Error handling in SpecWalker::FakeLetMethod

## [0.2.1] - 2024-06-09

Expand Down
2 changes: 1 addition & 1 deletion lib/solargraph/rspec/spec_walker/fake_let_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def #{method_name}
RUBY

ast.children[2]
rescue SyntaxError
rescue SyntaxError => e
raise "Failed to build fake let method: #{block_ast.inspect}, message: #{e.message}"
ensure
nil
Expand Down

0 comments on commit a5e1aa6

Please sign in to comment.