cabana: fix route load error handing (#34028)

fix error handing
This commit is contained in:
Dean Lee
2024-11-15 15:22:47 +08:00
committed by GitHub
parent a4656bd939
commit 3a1c9e0f01
+1 -1
View File
@@ -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()) {