Error and attack vulnerability of temporal networks