fix: properly report transpilation errors

Fixes #1