Replace DOCUMENT_ROOT in error messages with a placeholder, lazily

There's not much to reveal through paths in error messages that actually
matters, but using a placeholder for a long path (it's especially long
in the production shadowm.r.n site) makes for more readable error
messages.