Skip to content
This repository
Browse code

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...
commit 649ab065512e38af683a8264f47172010e98a872 1 parent 0dd8d4e
authored August 02, 2009 iamsolarpowered committed August 03, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/transcode.rb
2  lib/transcode.rb
@@ -16,7 +16,7 @@ def make
16 16
       begin
17 17
         Paperclip.run 'ffmpeg', cmd(dst)
18 18
       rescue
19  
-        raise PaperclipError, "There was an error transcoding #{@basename} to #{@format}"
  19
+        raise PaperclipError, "There was an error transcoding #{@basename} to #{@format}" unless Paperclip.options[:suppress_errors]
20 20
       end
21 21
       dst
22 22
     end

0 notes on commit 649ab06

Please sign in to comment.
Something went wrong with that request. Please try again.