Set encounteredError independently of argument