Let $X$ be a surface over a field $k$ with a smooth $k$-point $x\in X$, and suppose $\mathcal{Y}$ is a proper DM stack over $k$. (I am really thinking of $\mathcal{Y}=\overline{\mathcal{M}_g}$.) Let $f:X-x\to\mathcal{Y}$ be a morphism over $k$. When does $f$ lift to an honest morphism $Bl_x(X)\to\mathcal{Y}$?
I think the following might be the correct condition: for every smooth curve $C\in X$ containing $x$, the morphism $C-x\to X-x\to\mathcal{Y}$ extends over $X$.