Set type if we fail.