Fix error detection in Jalopy