Commit de9c4941 by ivan Lan

Improve web error

parent 2a266379
......@@ -2,7 +2,7 @@ module Shotengai
class WebError < RuntimeError
attr_accessor :message, :code, :status
def initialize message, code, status
super()
super(message)
@message, @code, @status = message, code, status
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment