Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise friendly error when template host cannot be resolved.
By default, Rummager will attempt to connect to static.dev.gov.uk for its templates. If you're not using the standard hosts (*.dev.gov.uk) to serve the apps then visiting your instance of Rummager will result in the fairly opaque: SocketError at / getaddrinfo: nodename nor servname provided, or not known This change to slimmer will catch the SocketError exception and raise a more friendly Slimmer::CouldNotRetrieveTemplate error, which is what it currently does when it can't connect to port 80. This makes it much easier to diagnose these problems in client apps, e.g. Rummager.
- Loading branch information