Skip to content

Commit bbb2740

Browse files
committed
Add detailed error logging for missing projectPath in executeBash
Helps diagnose git status failures by showing full metadata when projectPath is missing, revealing why the migration didn't apply.
1 parent 0f0b234 commit bbb2740

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/ipcMain.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,12 @@ export class IpcMain {
560560
}
561561

562562
const metadata = metadataResult.data;
563+
564+
// Validate required fields for path computation
565+
if (!metadata.projectPath) {
566+
return Err(`Workspace metadata missing projectPath for ${workspaceId}. Metadata: ${JSON.stringify(metadata)}`);
567+
}
568+
563569
// Compute worktree path from project path + workspace ID
564570
const workspacePath = this.config.getWorkspacePath(metadata.projectPath, metadata.id);
565571

0 commit comments

Comments
 (0)