Add domain, type and protocol to error message