newapi error->warning