Improve error message for easier debugging (#63)