[Groonga-commit] droonga/droonga-engine at 5fd5ea9 [buffered-forward] Don't do "exit" in a begin-rescue block, beause it raises an exception.

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Mar 27 13:03:11 JST 2015


YUKI Hiroshi	2015-03-27 13:03:11 +0900 (Fri, 27 Mar 2015)

  New Revision: 5fd5ea9806680bb2eb4879b8f0623074d043b91e
  https://github.com/droonga/droonga-engine/commit/5fd5ea9806680bb2eb4879b8f0623074d043b91e

  Message:
    Don't do "exit" in a begin-rescue block, beause it raises an exception.

  Modified files:
    bin/droonga-engine-join

  Modified: bin/droonga-engine-join (+1 -1)
===================================================================
--- bin/droonga-engine-join    2015-03-27 12:54:25 +0900 (907f6e4)
+++ bin/droonga-engine-join    2015-03-27 13:03:11 +0900 (ba8b664)
@@ -50,13 +50,13 @@ class JoinCommand
       set_effective_message_timestamp
       reset_node_role
       puts("Done.")
-      exit(true)
     rescue Exception => exception
       puts("Unexpected exception: #{exception.message}")
       puts(exception.backtrace.join("\n"))
       do_cancel
       exit(false)
     end
+    exit(true)
   end
 
   private
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index