PM-779 make the error message more informative.