                 @_show() # update layout, since hiding spinner might cause a linebreak in the button bar to go away
                 opts.cb?()
 
-    render_error_page: (cb) =>
+    render_error_page: () =>
+        # looks bad, but it isn't: @_render_error_page is synchronized at it's heart
+        async.series([
+            @get_rnw_concordance,
+            @_render_error_page
+        ])
+
+    _render_error_page: (cb) =>
         log = @preview.pdflatex.last_latex_log
         if not log?
             cb()

                log_output.text(log_output.text() + '\n\n-----------------------------------------------------\nRunning ' + mesg.start + '...\n\n\n\n')
            else
                if mesg.end == 'latex'
                    async.series([
                        @get_rnw_concordance,
                        @render_error_page
                    ])
                build_status.text('')
                log_output.text(log_output.text() + '\n' + mesg.log + '\n')
            # Scroll to the bottom of the textarea

        if not file
            alert_message
                type    : "error"
                message : "Unable to open unknown file."
            cb?()
            return
        if not mesg.line
