diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-16 23:57:08 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-16 23:57:08 -0800 |
commit | 5dea67ecf3dd868e7b375312cdef2c4651b11437 (patch) | |
tree | 106856f38f3e4b8934af0a584345ea09644b4b5e /lib/rainbows/base.rb | |
parent | 52ad3f270e758e5bfdfe965cbecbd20d5048062f (diff) | |
download | rainbows-5dea67ecf3dd868e7b375312cdef2c4651b11437.tar.gz |
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r-- | lib/rainbows/base.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index a735b82..9bbe049 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -10,11 +10,6 @@ module Rainbows include Rainbows::Const G = Rainbows::G - def handle_error(client, e) - msg = Error.response(e) and client.write_nonblock(msg) - rescue - end - def init_worker_process(worker) super(worker) G.tmp = worker.tmp @@ -65,7 +60,7 @@ module Rainbows # if the socket is already closed or broken. We'll always ensure # the socket is closed at the end of this function rescue => e - handle_error(client, e) + Error.write(client, e) ensure client.close end |