From be89569b02dd14e881924efd587d1f4ea0f24aa3 Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Wed, 25 Dec 2019 22:32:55 +0900 Subject: [PATCH] IDGXMLMaker: print stderr messages from filter program --- lib/review/idgxmlmaker.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/review/idgxmlmaker.rb b/lib/review/idgxmlmaker.rb index 163e3f0b7..4e7de2c5a 100644 --- a/lib/review/idgxmlmaker.rb +++ b/lib/review/idgxmlmaker.rb @@ -118,10 +118,11 @@ def apply_filter(xmlfile) ENV['REVIEW_FNAME'] = File.basename(xmlfile).sub(/.xml\Z/, '.re') begin o, e, s = Open3.capture3(@filter, stdin_data: File.read(xmlfile)) + unless e.empty? + warn("filter error for #{xmlfile}: #{e}") + end if s.success? File.write(xmlfile, o) # override - else - warn("filter error for #{xmlfile}: #{e}") end rescue => e warn("filter error for #{xmlfile}: #{e.message}")