In any case a function returns an error there should be a match or some error handling considering all paths.