fix: publish file errors only after the task reaches failed state
Verify Tessera GUI / verify (push) Failing after 9m13s

This commit is contained in:
2026-10-23 12:13:22 +08:00
parent 05b727a4a5
commit b725cf488d
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -430,7 +430,14 @@ impl NativeCallable for Method {
.map(|text| Value::Text(text.to_string()))
.unwrap_or(Value::Nil)
}
Query::Error => Value::Text(task.error.as_deref().unwrap_or_default().into()),
Query::Error => Value::Text(
if task.state == State::Failed {
task.error.as_deref().unwrap_or_default()
} else {
""
}
.into(),
),
Query::Cancel => {
if cx.store().is_read_only() {
return Err(invalid(