lib/mediainfo.rb in mediainfo-1.2.1 vs lib/mediainfo.rb in mediainfo-1.2.2
- old
+ new
@@ -21,12 +21,12 @@
def self.location
if ENV['MEDIAINFO_PATH'].nil?
mediainfo_location = which('mediainfo')
else
mediainfo_location = ENV['MEDIAINFO_PATH']
+ raise EnvironmentError, "MediaInfo path you provided cannot be found. Please check your mediainfo installation location..." unless ::File.exist? mediainfo_location
end
raise EnvironmentError, "MediaInfo binary cannot be found. Are you sure mediainfo is installed?" if which('mediainfo').nil?
- raise EnvironmentError, "MediaInfo path you provided cannot be found. Please check your mediainfo installation location..." unless ::File.exist? mediainfo_location
return mediainfo_location
end
# Allow collection of MediaInfo version details
def self.version