move back to using format_error/1
Merge pull request #263 from tsloughter/format_error1

move back to using format_error/1