lib/deputy.rb in deputy-0.1.29 vs lib/deputy.rb in deputy-0.1.30
- old
+ new
@@ -122,10 +122,10 @@
url = "#{sheriff_url}#{path}"
Timeout.timeout(config['timeout']||10) do
open(url).read
end
rescue => e
- e.message << url
+ e.message << url if e.message
raise e
end
def self.sheriff_url
config['sheriff_url'].sub(%r{/$},'')
\ No newline at end of file