From 4cd842927a60e4e81915da22983f216ccd54d6a3 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 29 Sep 2016 12:56:14 +0200 Subject: 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. --- lib/nickserver/dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3