Add some debug code - Ref #458

This will look ugly as hell, but should help to provide some more information in case GitHub rejects our requests.

Ref #458