watch --once exits 0 even when the poll failed #625
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#625
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
internal/tpagectl/watch/watch.go, a non-404 poll failure printswatch: <err>and then falls through to theif cmd.Bool("once") { return nil }check, sotpagectl watch SITE --onceexits 0 even when the check failed (5xx, network error). Since--onceis documented for scripting/CI, a failed check should exit non-zero.Return the last poll error (or the error directly) for
--onceso scripts can detect failure.See #624
Fixed in #634:
watch --oncereturns the last poll error instead of exiting 0 (regression test added).