Skip to content

Commit b88619c

Browse files
committed
docs: require supervisors and durable error propagation
1 parent ecd8f4a commit b88619c

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/run.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -999,13 +999,18 @@ pub fn up_once_selected(
999999
let (owner, _, _) = crate::reconcile::resolve_task(&found.specs, selector, this_host)?;
10001000
let mut report = UpReport::default();
10011001
report.warnings.extend(found.warnings);
1002-
report.errors.extend(found.errors.into_iter().map(|e| e.message));
1002+
report.errors.extend(
1003+
found
1004+
.errors
1005+
.into_iter()
1006+
.map(|e| format!("{}: {}", e.path.display(), e.message)),
1007+
);
10031008
let owner = owner.clone();
1004-
if crate::hooks::required_by_codex_agent(&owner, this_host) {
1005-
if let Err(error) = crate::hooks::verify_installed() {
1006-
report.errors.push(format!("verify lifecycle hooks: {error}"));
1007-
return Ok(report);
1008-
}
1009+
if crate::hooks::required_by_codex_agent(&owner, this_host)
1010+
&& let Err(error) = crate::hooks::verify_installed()
1011+
{
1012+
report.errors.push(format!("verify lifecycle hooks: {error}"));
1013+
return Ok(report);
10091014
}
10101015
let materialized =
10111016
crate::materialize::materialize_catalog(catalog_root, std::slice::from_ref(&owner), this_host);
@@ -1015,7 +1020,7 @@ pub fn up_once_selected(
10151020
if owner_materialization_failed {
10161021
return Ok(report);
10171022
}
1018-
let mut execution = up_once_selected_specs_with_gates(
1023+
let execution = up_once_selected_specs_with_gates(
10191024
catalog_root,
10201025
&found.specs,
10211026
selector,

0 commit comments

Comments
 (0)