summaryrefslogtreecommitdiff
path: root/lib/nickserver/dispatcher.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/dispatcher.rb')
-rw-r--r--lib/nickserver/dispatcher.rb2
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