i fixed the error printing bug in issue #34