fix(ai): actually throw probe error out of probeDevServerReadiness so AI captures the failure synchronously
This commit is contained in:
@@ -767,6 +767,7 @@ export async function probeDevServerReadiness(
|
||||
`UPDATE fs_dev_servers SET state = 'failed' WHERE id = $1 AND project_id = $2 AND state != 'stopped'`,
|
||||
[serverId, projectId],
|
||||
);
|
||||
throw new Error(`Probe failed with exit code ${r.exitCode}: ${r.stdout}`);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(
|
||||
@@ -782,6 +783,7 @@ export async function probeDevServerReadiness(
|
||||
`UPDATE fs_dev_servers SET state = 'failed' WHERE id = $1 AND project_id = $2 AND state != 'stopped'`,
|
||||
[serverId, projectId],
|
||||
);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user