diff options
Diffstat (limited to 'internal/handlers/widget.go')
| -rw-r--r-- | internal/handlers/widget.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/handlers/widget.go b/internal/handlers/widget.go index a7f7b66..915909e 100644 --- a/internal/handlers/widget.go +++ b/internal/handlers/widget.go @@ -391,6 +391,10 @@ func (h *Handler) HandleWidgetComplete(w http.ResponseWriter, r *http.Request) { http.Error(w, "task not found", http.StatusNotFound) return } + if errors.Is(err, store.ErrChainTaskLocked) { + http.Error(w, "task is locked in its chain", http.StatusBadRequest) + return + } http.Error(w, "failed to complete task", http.StatusInternalServerError) return } |
