Skip to content

Commit 52aa993

Browse files
Fix reference to StimulusReflex::VersionMismatchError (#665)
# 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]>
1 parent b079be2 commit 52aa993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/channels/stimulus_reflex/channel.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def receive(data)
2727
reflex.logger&.error error_message
2828
reflex.broadcast_error data: data, error: "#{exception} #{exception.backtrace.first.split(":in ")[0] if Rails.env.development?}"
2929
else
30-
unless exception.is_a?(StimulusReflex::Reflex::VersionMismatchError)
30+
unless exception.is_a?(StimulusReflex::VersionMismatchError)
3131
StimulusReflex.config.logger.error error_message
3232
end
3333

0 commit comments

Comments
 (0)