Improve error message when removing a workshop twice - #990
Draft
jonathan-conder wants to merge 1 commit into
Draft
Improve error message when removing a workshop twice#990jonathan-conder wants to merge 1 commit into
jonathan-conder wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves removal errors when the requested workshop is already absent.
Changes:
- Wraps
ErrWorkshopNotLaunchedwith a clearer removal-specific message. - Updates API test expectations for the new message.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
internal/overlord/workshopstate/manifest.go |
Adds the removal-specific wrapped error. |
internal/daemon/api_workshops_test.go |
Updates expected API errors. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
jonathan-conder
force-pushed
the
fix/workshop-already-removed-message
branch
from
August 17, 2026 23:43
46127d6 to
2e7704d
Compare
jonathan-conder
force-pushed
the
fix/workshop-already-removed-message
branch
from
August 18, 2026 00:40
2e7704d to
1ee939d
Compare
|
What would it say when the workshop has never been launched (hence never been removed)? Cross-posting my MM proposal here: I'd suggest to output a non-error message When a user tries to remove several workshops, it'll be The current error should stay as is when the status is |
jonathan-conder
marked this pull request as draft
August 18, 2026 20:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a minor API break:
v1PostProjectWorkshopreturns 404 when a workshop isn't found. TBH not sure if this is a good idea.Before:
After:
The intent of
not launchedis to hint that the user should launch the workshop; in this case that doesn't apply.Self-review quick check
Docs
Procedure:
Content:
tutorial/andhow-to/sections).docs/.coverage.yamlupdated, coverage tags added (.. artefact).Or: