lib/attached/processor/audio.rb in attached-0.2.5 vs lib/attached/processor/audio.rb in attached-0.2.6
- old
+ new
@@ -53,9 +53,11 @@
parameters = parameters.join(" ").squeeze(" ")
`lame #{parameters}`
+ raise Errno::ENOENT if $?.exitstatus == 127
+
rescue Errno::ENOENT
raise "command 'lame' not found: ensure LAME is installed"
end
unless $?.exitstatus == 0