Skip to content

Commit

Permalink
Fix reference to StimulusReflex::VersionMismatchError (#665)
Browse files Browse the repository at this point in the history
# Bug fix

## Description

This reference to `StimulusReflex::Reflex::VersionMismatchError` in
`StimulusReflex::Channel` is using an old namespace that was changed
recently to `StimulusReflex::VersionMismatchError`.

## Why should this be added

Fixes #664 reported by @obie, additional discussion here:
https://discord.com/channels/629472241427415060/733725826411135107/1113306088796864615

## Checklist

- [x] My code follows the style guidelines of this project
- [x] Checks (StandardRB & Prettier-Standard) are passing

---------

Co-authored-by: Marco Roth <[email protected]>
  • Loading branch information
Matt-Yorkley and marcoroth authored May 31, 2023
1 parent b079be2 commit 52aa993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/channels/stimulus_reflex/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def receive(data)
reflex.logger&.error error_message
reflex.broadcast_error data: data, error: "#{exception} #{exception.backtrace.first.split(":in ")[0] if Rails.env.development?}"
else
unless exception.is_a?(StimulusReflex::Reflex::VersionMismatchError)
unless exception.is_a?(StimulusReflex::VersionMismatchError)
StimulusReflex.config.logger.error error_message
end

Expand Down

0 comments on commit 52aa993

Please sign in to comment.