added proper error format for wildcard matching