cabana: fix route load error handing (#34028)

fix error handing
pull/34030/head
Dean Lee 5 months ago committed by GitHub
parent a4656bd939
commit 3a1c9e0f01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      tools/cabana/streams/replaystream.cc

@ -62,7 +62,7 @@ bool ReplayStream::loadRoute(const QString &route, const QString &data_dir, uint
QObject::connect(replay.get(), &Replay::segmentsMerged, this, &ReplayStream::mergeSegments); QObject::connect(replay.get(), &Replay::segmentsMerged, this, &ReplayStream::mergeSegments);
bool success = replay->load(); bool success = replay->load();
if (!success) { if (!success) {
if (replay->lastRouteError() == RouteLoadError::AccessDenied) { if (replay->lastRouteError() == RouteLoadError::Unauthorized) {
auto auth_content = util::read_file(util::getenv("HOME") + "/.comma/auth.json"); auto auth_content = util::read_file(util::getenv("HOME") + "/.comma/auth.json");
QString message; QString message;
if (auth_content.empty()) { if (auth_content.empty()) {

Loading…
Cancel
Save