Correct error message for proc functions.