Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log a warning when a `Mongoid::Errors::DocumentNotFound` error is raised in a controller. These errors were being silently swallowed by the application. The error occurs when an attempt is made to load a document that doesn't exist, which can happen when the overnight DB replication from prod->integration fails. It will also happen if the edition ID is manipulated in the URL (e.g. in URLs of the form `/editions/[edition-id]`), so it's not _necessarily_ an error when it happens.
- Loading branch information