Navigation Menu

Skip to content

Commit

Permalink
Output error message to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 4, 2014
1 parent c2a03c6 commit 4f4f81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/grn2drn-schema
Expand Up @@ -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))

0 comments on commit 4f4f81a

Please sign in to comment.