Changed default error message so that it is more informative.