         "new?title=Add%20support%20for%20" + @lang + "'>issue on GitHub" +
         "</a> or send your own Pull Request"
 
-  displayOutput: (line, out_type)->
-    @heading.text(@lang)
-    @output.append("<pre class='line #{out_type}'>#{line}</pre>")
-
-  displayError: ->
-    @heading.text("Error")
-    @output.append("<pre class='line error'>#{@err}</pre>")
+  display: (title, css, line)->
+    @heading.text(title)
+    @output.append("<pre class='line #{css}'>#{line}</pre>")

        cwd: atom.project.getPath()
        env: process.env

      stdout = (output) => @displayOutput(output, "stdout")
      stderr = (output) => @displayOutput(output, "stderr")
      exit = (return_code) -> console.log("Exited with #{return_code}")

      @bufferedProcess = new BufferedProcess({command, args, options, stdout, stderr, exit})

    @check()

    if @err?
      @display("Error", "error", @err)
      @err = null
      @stop()
    else
