Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcphillips committed Mar 21, 2024
1 parent f3c7ec6 commit 79bf509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twilio/rails/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def register(klass_or_proc=nil, &block)
# @param [String, Symbol] name of the phone tree or SMS responder to find.
# @return [Class] the phone tree or SMS responder class.
def for(name)
@registry[name.to_s] || raise(error_class, "No responder registered for '#{ name }'")
@registry[name.to_s] || raise(error_class, "Name '#{ name }' has not been registered and cannot be found.")
end

# Returns all the phone trees or SMS responders as a read-only hash, keyed by name.
Expand Down

0 comments on commit 79bf509

Please sign in to comment.