print errors in testing and local env