Functions to create better formatted errors in GoLang