If my tex-files contain an error (such as an undefined control sequence), latexmk will present a prompt and ask for manual input before continuing. Now, of course it is possible to force further processing, e.g. as described here Don't make me manually abort a LaTeX compile when there's an error or here Make latexmk ignore errors and finish compiling.
However, in case of an error I would like Latexmk to stop processing completely and to return to the command line. Is there any way to accomplish this?