It's a typo. It has to be lastError().