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

          json = updateOutput.split("\n").reverse()[0]

          updateInfo = JSON.parse json
        catch ex
          console.log "Update output isn't valid: " + updateOutput
          emit 'update-not-available'
          return


        # we always just download
        emit 'update-available'
        emit 'update-downloaded',
          releaseNotes: latest.releaseNotes
          releaseName: "Atom #{latest.version}"
          releaseDate: ""   # NB: Squirrel doesn't provide this :(
          updateUrl: "https://atom.io"
          quitAndUpdate: @quitAndInstall
