remove struct from error message