Skip to content

Commit f3ba6da

Browse files
committed
Change git status failure logging from debug to error
Make git status failures visible in console by using console.error instead of console.debug. This helps diagnose why git status indicators aren't appearing in the workspace list. Changes: - IPC failures: console.debug → console.error - Script failures: console.debug → console.error - Parse failures: console.debug → console.error - Exceptions: console.debug → console.error
1 parent 8095b67 commit f3ba6da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/stores/GitStatusStore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,20 @@ export class GitStatusStore {
209209
});
210210

211211
if (!result.success) {
212-
console.debug(`[gitStatus] IPC failed for ${metadata.id}:`, result.error);
212+
console.error(`[gitStatus] IPC failed for ${metadata.id}:`, result.error);
213213
return [metadata.id, null];
214214
}
215215

216216
if (!result.data.success) {
217-
console.debug(`[gitStatus] Script failed for ${metadata.id}:`, result.data.error);
217+
console.error(`[gitStatus] Script failed for ${metadata.id}:`, result.data.error);
218218
return [metadata.id, null];
219219
}
220220

221221
// Parse the output using centralized function
222222
const parsed = parseGitStatusScriptOutput(result.data.output);
223223

224224
if (!parsed) {
225-
console.debug(`[gitStatus] Could not parse output for ${metadata.id}`);
225+
console.error(`[gitStatus] Could not parse output for ${metadata.id}`);
226226
return [metadata.id, null];
227227
}
228228

@@ -238,8 +238,8 @@ export class GitStatusStore {
238238

239239
return [metadata.id, { ...parsedStatus, dirty }];
240240
} catch (err) {
241-
// Silently fail - git status failures shouldn't crash the UI
242-
console.debug(`[gitStatus] Exception for ${metadata.id}:`, err);
241+
// Log errors but don't crash the UI
242+
console.error(`[gitStatus] Exception for ${metadata.id}:`, err);
243243
return [metadata.id, null];
244244
}
245245
}

0 commit comments

Comments
 (0)