From 8b65858a864aa0ecfa24ccf8f910c36af0ec1ad6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 6 Jul 2010 04:01:30 +0000 Subject: cleanup error handling for aborted downloads We shouldn't ever spew errors to the stderr/logger on client disconnects (ECONNRESET/EPIPE/etc...). --- lib/rainbows/writer_thread_spawn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/writer_thread_spawn.rb') diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb index e1f9e53..9e793fc 100644 --- a/lib/rainbows/writer_thread_spawn.rb +++ b/lib/rainbows/writer_thread_spawn.rb @@ -61,7 +61,7 @@ module Rainbows io.write(arg1) end rescue => e - Error.app(e) + Error.write(io, e) end end CUR.delete(Thread.current) -- cgit v1.2.3-24-ge0c7