Skip to content

Commit 240f6fd

Browse files
SoloJacobsJenkins
authored andcommitted
werk: Point empty-stash errors at the current ID reservation workflow
Change-Id: Ia97f456b18e23d260e3e912966d90cbd68119f8f
1 parent a5b0856 commit 240f6fd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • packages/cmk-werks/cmk/werks/tool/cli

packages/cmk-werks/cmk/werks/tool/cli/stash.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def pick_id(self) -> "WerkId":
3030
try:
3131
return WerkId(sorted(self.ids)[0])
3232
except (KeyError, IndexError) as e:
33-
raise RuntimeError(
34-
"You have no Werk IDs. You can reserve 10 additional Werk IDs with 'werk ids 10'."
35-
) from e
33+
raise RuntimeError("You have no Werk IDs in your stash.") from e
3634

3735
def free_id(self, werk_id: "WerkId") -> None:
3836
"""
@@ -77,7 +75,8 @@ def pick_id(self, *, project: str) -> "WerkId":
7775
return WerkId(sorted(self.ids_by_project[project])[0])
7876
except (KeyError, IndexError) as e:
7977
raise RuntimeError(
80-
"You have no Werk IDs. You can reserve 10 additional Werk IDs with 'werk ids 10'."
78+
"You have no Werk IDs. Please run 'werk init' to switch to the new reservation "
79+
"mechanism, which reserves werk IDs on the fly during 'werk new'."
8180
) from e
8281

8382
def free_id(self, werk_id: "WerkId") -> None:

0 commit comments

Comments
 (0)