Adding func errors to refactoring 'errors'