fix: properly format errors without data

Fixes #38
Closes #39