Use ErrorContext::RunCondition
variant when reporting errors from run conditions.
This commit is contained in:
parent
b01de70bdd
commit
b5439f56ee
@ -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(),
|
||||||
},
|
},
|
||||||
|
@ -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(),
|
||||||
},
|
},
|
||||||
|
@ -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(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user