fix: avoid failrues on error message formatting

Fixes #46

Closes #48