Fix error message for global initialization
Merge pull request #2652 from gmethvin/global

Fix error message for global initialization