Add error macros that take a message

Fixes #229.