Changing name of function within error message