Fix L48: strip ERROR: prefix from errorlog seed data to match production

cleanError() strips leading 'ERROR:' from yt-dlp stderr before sending
errors to the UI and error log. The browser-preview seed entry in
store/errorlog.ts had the raw 'ERROR: [youtube]...' prefix, making the
preview inconsistent with what production shows. Removed the prefix from
the seed string so the preview and production rendering match.

typecheck + 242 tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 14:44:18 -04:00
parent 036ef74362
commit fa4b41e0a5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const seed: ErrorLogEntry[] = PREVIEW
title: 'Private video',
url: 'https://youtube.com/watch?v=err0r',
kind: 'video',
error: 'ERROR: [youtube] err0r: Private video. Sign in if you have access.',
error: '[youtube] err0r: Private video. Sign in if you have access.',
occurredAt: Date.now() - 1000 * 60 * 12
}
]