fix: properly format err messages with new lines

Fixes #40
Merge pull request #46 from pkozlowski-opensource/issue40

fix: properly format err messages with new lines