             @number_of_warnings.text('')
 
         if @_current_page != 'errors'
+            cb()
             return
 
         elt = @errors.find(".salvus-latex-errors")

                @_show() # update layout, since hiding spinner might cause a linebreak in the button bar to go away
                opts.cb?()

    render_error_page: () =>
        log = @preview.pdflatex.last_latex_log
        if not log?
            return
        p = (new LatexParser(log)).parse()


                cb?()
                return
        else
            if file in [@preview.pdflatex.filename_tex, @preview.pdflatex.filename_rnw]
                @latex_editor.set_cursor_center_focus({line:mesg.line-1, ch:0})
            else
                if @_path # make relative to home directory of project
