Skip to content

Commit f994514

Browse files
committed
fix err return
1 parent 3a1c805 commit f994514

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/actions/schedule_tasks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func startTasks(ctx context.Context) error {
7272
// Skip the actions unit of this repo is disabled.
7373
continue
7474
}
75-
return err
75+
return fmt.Errorf("GetUnit: %w", err)
7676
}
7777
if cfg.ActionsConfig().IsWorkflowDisabled(row.Schedule.WorkflowID) {
7878
continue

services/repository/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func UpdateRepositoryUnits(ctx context.Context, repo *repo_model.Repository, uni
3636
"",
3737
webhook_module.HookEventSchedule,
3838
); err != nil {
39-
return fmt.Errorf("CancelRunningJobs: %v", err)
39+
return fmt.Errorf("CancelRunningJobs: %w", err)
4040
}
4141
}
4242

0 commit comments

Comments
 (0)