         error.stdout = stdout
         error.stderr = stderr
         callback(error)
+
+    handleProcessErrors(apmProcess, 'Fetching featured packages failed.', callback)
 
   loadOutdated: (callback) ->
     args = ['outdated', '--json']
     version = atom.getVersion()
     args.push('--compatible', version) if semver.valid(version)
 
-    @runCommand args, (code, stdout, stderr) ->
+    apmProcess = @runCommand args, (code, stdout, stderr) ->
       if code is 0
         try
           packages = JSON.parse(stdout) ? []

        error.stdout = stdout
        error.stderr = stderr
        callback(error)

  getInstalled: ->
    Q.nbind(@loadInstalled, this)()

        error = new Error("Uninstalling \u201C#{name}\u201D failed.")
        error.stdout = stdout
        error.stderr = stderr
        onError(error)

    handleProcessErrors(apmProcess, "Uninstalling \u201C#{name}\u201D failed.", onError)

  canUpgrade: (installedPackage, availableVersion) ->
    return false unless installedPackage?
