diff --git a/web/apps/cast/src/services/render.ts b/web/apps/cast/src/services/render.ts index ef181b19f..14d085e50 100644 --- a/web/apps/cast/src/services/render.ts +++ b/web/apps/cast/src/services/render.ts @@ -97,8 +97,12 @@ export const renderableImageURLs = async function* (castData: CastData) { haveEligibleFiles = true; } catch (e) { if (e instanceof ApiError && e.httpStatusCode == 401) { - // The token has expired. Rethrow the error, which will - // bring us back to the pairing page. + // The token has expired. This can happen, e.g., if the user + // opens the dialog to cast again, causing the client to + // invalidate existing tokens. + // + // Rethrow the error, which will bring us back to the + // pairing page. throw e; }