Fix deprecation warning from using .to_err_msg()
Merge pull request #82 from DaGenix/fixups

Fix deprecation warning from using .to_err_msg()