Fix error assigning errMsg to global scope rather than config object
Merge pull request #4 from zacwasielewski/master

Assign errMsg value to config object instead of global scope