       stdout: (output) -> updateOutput += output
       exit: (exitCode) ->
         unless exitCode is 0
-          console.log 'Failed to update: ' + exitCode + ' - ' + updateJson
+          console.log 'Failed to update: ' + exitCode + ' - ' + updateOutput
           emit 'update-not-available'
           return
 

    @updateUrl = url

  quitAndInstall: ->
    console.log 'quitAndInstall'

  checkForUpdates: ->
    throw new Error("Update URL is not set") unless @updateUrl

_ = require 'underscore-plus'
path = require 'path'
fs = require 'fs'
shellAutoUpdater = require 'auto-updater'

{EventEmitter} = require 'events'
{BufferedProcess} = require 'atom'
