Only print errors once for invalid expressions