remove use of undefined variable 'msg'
Merge pull request #49 from anodelman/missing-msg

remove use of undefined variable 'msg'