From 3a1c9e0f015726339de2653db4545d9fd8ed7ff6 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 15 Nov 2024 15:22:47 +0800 Subject: [PATCH] cabana: fix route load error handing (#34028) fix error handing --- tools/cabana/streams/replaystream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cabana/streams/replaystream.cc b/tools/cabana/streams/replaystream.cc index ac137434d3..bd48d97d52 100644 --- a/tools/cabana/streams/replaystream.cc +++ b/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); bool success = replay->load(); if (!success) { - if (replay->lastRouteError() == RouteLoadError::AccessDenied) { + if (replay->lastRouteError() == RouteLoadError::Unauthorized) { auto auth_content = util::read_file(util::getenv("HOME") + "/.comma/auth.json"); QString message; if (auth_content.empty()) {