lib/telesms/outgoing.rb in telesms-0.1.1 vs lib/telesms/outgoing.rb in telesms-0.1.2
- old
+ new
@@ -69,10 +69,10 @@
# This method formats the TO address to include the provider.
#
# @return [String]
def formatted_to
- "#{to}@#{Base.gateways[@provider][:sms]}"
+ "#{to}@#{Base.gateways[@provider][:sms]}" rescue raise "Invalid provider"
end
# This method sanitizes the message body.
#
# @return [String]
\ No newline at end of file