Use asprintf to construct error message.