httputil: nicer UI message when lacking ssl
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 2 Feb 2011 09:04:56 +0000 (10:04 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 2 Feb 2011 09:04:56 +0000 (10:04 +0100)
commita7017d68e1fb647f60a79f1733e80facea5fae07
tree8e28d66edd992e0a1a9b9006b2157234b8512ac0
parent4d68eabaa8dabaecb5ea4af210acbb4d0b10249f
httputil: nicer UI message when lacking ssl

Rather than complaining about a missing use_ssl= method, if net/https
fails to load we define a mock use_ssl= method that raises a runtime
error making the LoadError message public. This is not the most
user-friendly message (we would prefer not to expose internals), but
it should be clear enough to help owners that forget to read the log
find what's missing.
lib/rbot/core/utils/httputil.rb