removed instance of unused error message variable