fixing error message in integrals
Merge pull request #7931 from kaushik94/errorMessage

fixes #7704