Set error property.