Catch an illegal pragma and fix a typo