WIP: Error reporting

Solves #123.