Added general error function
Merge branch 'master' of https://github.com/Foggalong/wren