[Groonga-commit] droonga/grn2drn at 4f4f81a [master] Output error message to stderr

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 4 17:17:39 JST 2014


Kouhei Sutou	2014-04-04 17:17:39 +0900 (Fri, 04 Apr 2014)

  New Revision: 4f4f81a763e38a46f2f9854be2b5b85918026b2d
  https://github.com/droonga/grn2drn/commit/4f4f81a763e38a46f2f9854be2b5b85918026b2d

  Message:
    Output error message to stderr

  Modified files:
    bin/grn2drn-schema

  Modified: bin/grn2drn-schema (+1 -1)
===================================================================
--- bin/grn2drn-schema    2014-04-04 17:14:37 +0900 (b9f9a7b)
+++ bin/grn2drn-schema    2014-04-04 17:17:39 +0900 (049203a)
@@ -24,7 +24,7 @@ converter = Grn2Drn::SchemaConverter.new
 begin
   schema = converter.convert(ARGF)
 rescue Grn2Drn::Error
-  puts($!.message)
+  $stderr.puts($!.message)
   exit(false)
 end
 puts(JSON.pretty_generate(schema))
-------------- next part --------------
HTML����������������������������...
Download 



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