better error message for failed compile