lib/mediainfo.rb in mediainfo-1.3.1 vs lib/mediainfo.rb in mediainfo-1.3.2

- old
+ new

@@ -88,11 +88,11 @@ end def self.run(input = nil) raise ArgumentError, 'Your input cannot be blank.' if input.nil? command = "#{location} '#{input}' --Output=XML" - raw_response, errors, status = ::Open3.capture3(command) - unless errors.empty? && status.exitstatus == 0 + raw_response, errors, status = Open3.capture3(command) + unless status.exitstatus == 0 raise ExecutionError, "Execution of '#{command}' failed: \n #{errors.red}" end return raw_response end