added dialog error check
Merge branch 'master' of https://github.com/pidsley/codemangler