Commit 8e2400af authored by dgt's avatar dgt

Merge branch '279-handle-missing-asset-or-pictures' into 'master'

Resolve "Handle missing asset or pictures"

Closes #279

See merge request !259
parents ef938b66 3abc61b5
......@@ -20,6 +20,9 @@ class PicturesController < ApplicationController
@picture.render(@geometry)
end
send_file(@picture.private_file_path(@geometry), type: @picture.content_type, disposition: 'inline')
rescue ErrorMessage => e
Rails.logger.warn e
render nothing: true, status: 404
end
protected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment