Update error state