adding exit code on build error