Fix error logging
Merge branch 'master' of https://github.com/EtchUK/PubHack3