[Groonga-commit] groonga/groonga [master] add missing error message output.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 6月 21日 (月) 09:49:05 JST


Kouhei Sutou	2010-06-21 00:49:05 +0000 (Mon, 21 Jun 2010)

  New Revision: 3cffc8433849187bd4630828a2daf39265dcc2ac

  Log:
    add missing error message output.

  Modified files:
    data/munin/groonga_n_records

  Modified: data/munin/groonga_n_records (+4 -1)
===================================================================
--- data/munin/groonga_n_records    2010-06-21 00:40:18 +0000 (a0c48c2)
+++ data/munin/groonga_n_records    2010-06-21 00:49:05 +0000 (e93e6e8)
@@ -86,7 +86,10 @@ EOF
 end
 
 success, body = run("table_list")
-exit(false) unless success
+unless success
+  puts("error: #{body}")
+  exit(false)
+end
 parse_list(body[0], body[1..-1]).each do |table|
   name = table["name"]
   success, body = run("select", "#{name} --limit 0")




Groonga-commit メーリングリストの案内
Back to archive index