Change how syntax errors are thrown to match the specs