File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ def make
85
85
dest : File . expand_path ( dst . path ) ,
86
86
)
87
87
rescue Terrapin ::ExitStatusError => e
88
- raise Paperclip ::Error , "There was an error processing the thumbnail for #{ @basename } " if @whiny
88
+ if @whiny
89
+ message = "There was an error processing the thumbnail for #{ @basename } :\n " + e . message
90
+ raise Paperclip ::Error , message
91
+ end
89
92
rescue Terrapin ::CommandNotFoundError => e
90
93
raise Paperclip ::Errors ::CommandNotFoundError . new ( "Could not run the `convert` command. Please install ImageMagick." )
91
94
end
Original file line number Diff line number Diff line change 179
179
end
180
180
181
181
it "errors when trying to create the thumbnail" do
182
- assert_raises ( Paperclip :: Error ) do
183
- silence_stream ( STDERR ) do
182
+ silence_stream ( STDERR ) do
183
+ expect {
184
184
@thumb . make
185
- end
185
+ } . to raise_error (
186
+ Paperclip ::Error , /unrecognized option `-this-aint-no-option'/
187
+ )
186
188
end
187
189
end
188
190
You can’t perform that action at this time.
0 commit comments