Switched error message and window title

Window title and error message were in the wrong order.