Use ErrorContext::RunCondition variant when reporting errors from run conditions.

This commit is contained in:
Chris Russell 2025-07-09 09:28:36 -04:00
parent b01de70bdd
commit b5439f56ee
3 changed files with 3 additions and 3 deletions

View File

@ -849,7 +849,7 @@ unsafe fn evaluate_and_fold_conditions(
if let RunSystemError::Failed(err) = err { if let RunSystemError::Failed(err) = err {
error_handler( error_handler(
err, err,
ErrorContext::System { ErrorContext::RunCondition {
name: condition.name(), name: condition.name(),
last_run: condition.get_last_run(), last_run: condition.get_last_run(),
}, },

View File

@ -207,7 +207,7 @@ fn evaluate_and_fold_conditions(
if let RunSystemError::Failed(err) = err { if let RunSystemError::Failed(err) = err {
error_handler( error_handler(
err, err,
ErrorContext::System { ErrorContext::RunCondition {
name: condition.name(), name: condition.name(),
last_run: condition.get_last_run(), last_run: condition.get_last_run(),
}, },

View File

@ -223,7 +223,7 @@ fn evaluate_and_fold_conditions(
if let RunSystemError::Failed(err) = err { if let RunSystemError::Failed(err) = err {
error_handler( error_handler(
err, err,
ErrorContext::System { ErrorContext::RunCondition {
name: condition.name(), name: condition.name(),
last_run: condition.get_last_run(), last_run: condition.get_last_run(),
}, },