Better error logging to aid in deployment