Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
fix missing constant error
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jul 23, 2015
1 parent 58cced4 commit d7e2e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slanger/handler.rb
Expand Up @@ -38,7 +38,7 @@ def onmessage(msg)
send event, msg
end

rescue Oj::ParserError
rescue JSON::ParserError
error({ code: 5001, message: "Invalid JSON" })
rescue Exception => e
error({ code: 500, message: "#{e.message}\n #{e.backtrace.join "\n"}" })
Expand Down

0 comments on commit d7e2e8d

Please sign in to comment.