         error.stdout = stdout
         error.stderr = stderr
         callback(error)
+
+    handleProcessErrors(apmProcess, "Fetching package '#{packageName}' failed.", callback)
 
   loadCompatiblePackageVersion: (packageName, callback) ->
     args = ['view', packageName, '--json', '--compatible', @normalizeVersion(atom.getVersion())]
 
-    @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)

  loadOutdated: (callback) ->
    args = ['outdated', '--json']
    version = atom.getVersion()
    args.push('--compatible', version) if semver.valid(version)

    @runCommand args, (code, stdout, stderr) ->
      if code is 0
        try
          packages = JSON.parse(stdout) ? []

    args.push('--themes') if loadThemes
    args.push('--compatible', version) if semver.valid(version)

    apmProcess = @runCommand args, (code, stdout, stderr) ->
      if code is 0
        try
          packages = JSON.parse(stdout) ? []
