null+****@clear*****
null+****@clear*****
2010年 7月 16日 (金) 20:22:54 JST
Kouhei Sutou 2010-07-16 11:22:54 +0000 (Fri, 16 Jul 2010) New Revision: 4d86b1f3cc2d2d9ac5a4a4f4c70c65312e03cac8 Log: show error message on error. Modified files: data/munin/groonga_status Modified: data/munin/groonga_status (+4 -1) =================================================================== --- data/munin/groonga_status 2010-07-16 11:20:15 +0000 (3f127df) +++ data/munin/groonga_status 2010-07-16 11:22:54 +0000 (c28156d) @@ -75,7 +75,10 @@ EOF end success, body = run("status") -exit(false) unless success +unless success + puts("error: #{body}") + exit(false) +end puts <<EOF alloc_count.value #{body["alloc_count"]} EOF