Make error message partial for new object creation work with all objects