Fixed issue #1261

This pull request should fix the issue #1261 by changing the error message.