fix bug where kompile crashes but ktest reports success
Merge pull request #308 from dwightguth/errorcode

fix bug where kompile crashes but ktest reports success