Permalink
Browse files

added suppress errors for using in development.

the lame: output buffer overflow seems to happen on a lot of mac dev machines
when installing ffmpeg via mac ports.

Use Paperclip.options[:suppress_errors] = true in your development.rb config file to ignore command line errors

Signed-off-by: Ben Shymkiw <ben@t.apio.ca>
  • Loading branch information...
1 parent 0dd8d4e commit 649ab065512e38af683a8264f47172010e98a872 Adam Hunter committed with Aug 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/transcode.rb
View
@@ -16,7 +16,7 @@ def make
begin
Paperclip.run 'ffmpeg', cmd(dst)
rescue
- raise PaperclipError, "There was an error transcoding #{@basename} to #{@format}"
+ raise PaperclipError, "There was an error transcoding #{@basename} to #{@format}" unless Paperclip.options[:suppress_errors]
end
dst
end

0 comments on commit 649ab06

Please sign in to comment.