In 2014, V. Andrievskii proved that if a real-valued function f is an element of Lip alpha, 0 <. < 1, defined on a given smooth Jordan curve satisfying the Dini condition changes its sign finitely many times, then it can be approximated by a harmonic polynomial that changes its sign on the indicated curve at the same points as f, and the approximation error has the same order as the classical Dzyadyk's error of pointwise approximation. By applying the scheme of the proof proposed by Andrievskii, we generalize his result to the case of an arbitrary modulus of continuity omega(f, t) satisfying the inequality gamma omega(f, 2t) >= omega(f, t), where gamma = const < 1.