fix error reporting
fix #70
0.3.1