Skip to content

Commit

Permalink
catch http status errors too
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Oct 27, 2011
1 parent 80530f6 commit 344366e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cia.rb
Expand Up @@ -43,7 +43,7 @@ def xmlrpc_server
def deliver(message)
xmlrpc_server.call("hub.deliver", message)
rescue StandardError => err
if $!.to_s =~ /content\-type/i
if $!.to_s =~ /content\-type/i || $!.to_s =~ /HTTP\-Error/i
raise_config_error "Check the CIA Address: #{$!.message}"
else
raise
Expand Down

0 comments on commit 344366e

Please sign in to comment.