fix: properly format err messages with new lines

Fixes #40