adding error message for represent-struct on non-transparent structs