# File lib/em-http/client.rb, line 121
    def on_error(msg = nil)
      @error = msg
      fail(self)
    end