Skip to content

Commit ecf37db

Browse files
committed
fix(ui): show warning toast when indexing fails to start
Users now see a visible warning when repo is added but indexing fails, instead of only logging to console. Keeps console.error for debugging.
1 parent b318b2b commit ecf37db

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/components/dashboard/DashboardHome.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ export function DashboardHome() {
152152

153153
if (!indexResponse.ok) {
154154
const err = await indexResponse.json().catch(() => ({}))
155+
const errMsg = err.detail?.message || err.detail || 'Indexing failed to start'
155156
console.error(`Failed to start indexing for ${repo.name}:`, err)
157+
toast.warning(`${repo.name} added but indexing failed`, {
158+
description: errMsg
159+
})
156160
}
157161

158162
// Show progress for last repo

0 commit comments

Comments
 (0)