include the request object in build error

so that we will have the URL in sentry
Merge pull request #4188 from dimagi/include-request-in-error

include the request object in build error