lib/libreconv.rb in libreconv-0.9.2 vs lib/libreconv.rb in libreconv-0.9.3

- old
+ new

@@ -76,15 +76,16 @@ output, error, status = Open3.capture3( { 'HOME' => ENV['HOME'], 'PATH' => ENV['PATH'], - 'LANG' => ENV['LANG'] + 'LANG' => ENV['LANG'], + 'LD_LIBRARY_PATH' => ENV['LD_LIBRARY_PATH'] }, *command, unsetenv_others: true ) - unless status.success? && error == '' + if !status.success? raise ConversionFailedError, "Conversion failed! Output: #{output.strip.inspect}, " \ "Error: #{error.strip.inspect}" end