\documentclass{minimal}
\begin{document}
\errorcommand{blah}
\input{test.tex}
\end{document}
