Better error message if Tor version too old

This commit is contained in:
Peter Todd 2015-08-26 21:43:18 -07:00 committed by Jack Grigg
parent eb5f63fe58
commit 77e5601e9e
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 3 additions and 1 deletions

View File

@ -408,8 +408,10 @@ void TorController::add_onion_cb(TorControlConnection& conn, const TorControlRep
}
AddLocal(service, LOCAL_MANUAL);
// ... onion requested - keep connection open
} else if (reply.code == 510) { // 510 Unrecognized command
LogPrintf("[tor] Add onion failed with unrecognized command (You probably need to upgrade Tor)\n");
} else {
LogPrintf("[tor] Add onion failed\n");
LogPrintf("[tor] Add onion failed; error code %d\n", reply.code);
}
}