diff options
author | Azul <azul@riseup.net> | 2016-09-29 12:56:14 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-29 12:56:14 +0200 |
commit | 4cd842927a60e4e81915da22983f216ccd54d6a3 (patch) | |
tree | 413c53fab7a7a7d108de4b192b60f24dc3265169 /lib | |
parent | bde67131c2382883f7957fa06d85b471a18c09d4 (diff) |
skip tests with ConnectionErrors
We handle these errors nicely in the dispatcher and have tests for that.
Tests should fail or err out when running into exceptions we are not
handling yet. But for these it's better to just skip.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nickserver/dispatcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/dispatcher.rb b/lib/nickserver/dispatcher.rb index 07571d5..f9801d1 100644 --- a/lib/nickserver/dispatcher.rb +++ b/lib/nickserver/dispatcher.rb @@ -66,7 +66,7 @@ module Nickserver if exc puts " Error: #{exc}" Nickserver::Response.new 502, - %Q|{"error": "#{exc}"}| + JSON.dump(error: exc.to_s) end end |