Switched error message and window title

Window title and error message were in the wrong order.
Merge pull request #490 from git-commit/master

indeed