diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-08-22 22:56:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 22:56:10 -0400 |
commit | dc001dbd58cde8b2caab42ab1bcdd88774818c53 (patch) | |
tree | 4704d8e8959bcd6569cc4244ec131e7dbedf87bc /activestorage/app | |
parent | cdee52079cdd88d376d9664a61a40348d45e819c (diff) | |
parent | 22efb2ec49087827ca1cb28a8bad9f016800c591 (diff) | |
download | rails-dc001dbd58cde8b2caab42ab1bcdd88774818c53.tar.gz rails-dc001dbd58cde8b2caab42ab1bcdd88774818c53.tar.bz2 rails-dc001dbd58cde8b2caab42ab1bcdd88774818c53.zip |
Merge pull request #33666 from cbothner/fail-gracefully-from-activestorage-file-not-found
Fail more gracefully from ActiveStorage missing file exceptions
Diffstat (limited to 'activestorage/app')
-rw-r--r-- | activestorage/app/controllers/active_storage/disk_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/app/controllers/active_storage/disk_controller.rb b/activestorage/app/controllers/active_storage/disk_controller.rb index 75cc11d6ff..7bd641ab9a 100644 --- a/activestorage/app/controllers/active_storage/disk_controller.rb +++ b/activestorage/app/controllers/active_storage/disk_controller.rb @@ -13,6 +13,8 @@ class ActiveStorage::DiskController < ActiveStorage::BaseController else head :not_found end + rescue Errno::ENOENT + head :not_found end def update |