Improve LTI error reporting.

Fixes #3