improved error messages in admin emails

See: https://github.com/dimagi/dimagi-utils/pull/223