Fix bug 1029166: Improve error message on domain configure
Merge pull request #4164 from liggitt/bug_1029166_improve_domain_configure_error

Fix bug 1029166: Improve error message on domain configure