anchor.diff:          completer.completeError(new HttpException("$error"));
         });
     });
  -  
  +
     return completer.future;
   }
   
  
positive.code:           p.stdin.write('y\n');
          }
        }
        
      });
      
      p.exitCode.then((code) {
        if (pubVerbose) {
          print("onExit: pub publish");
        }
        
        if (stderrBuffer.toString().contains(r"Failed to upload the package")) {
          print("Library $gitname upload failed.");
          completer.complete(false);
  
negative.code: Future<bool> checkCredentials(String token) {
    var completer = new Completer<bool>();
    var client = new HttpClient();
  
    Future<HttpClientRequest> connection = client.openUrl("GET", Uri.parse("https://api.github.com/user/repos"));
  
    connection.then((request){
      request.headers.set(HttpHeaders.AUTHORIZATION, "token $token");
  
      request.response.then((response) {
        response.listen((data) {
            // No need to read data, response.statusCode is enough
          },
          onError: (error) {
            completer.completeError(error);
          },
          onDone: () {
            if (response.statusCode == 200) {
  