Another oops, was still referencing old error func