Skip to content

Commit

Permalink
style(state): make reply message less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
nritsche committed May 26, 2020
1 parent 16e984c commit 04742d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coco/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ async def load_state(self, request: dict = None):
name = request.get("name")
if name == self._name_active_state:
raise InvalidUsage(
f"Can't load state {name}. This name is reserved. Choose one of "
f"{self._saved_states}."
f"Can't load state {name}. This name is reserved (it's the one that is active now)"
f". Choose any other from {self._saved_states}."
)
if not self.saved_state_exists(name):
raise InvalidUsage(
Expand Down

0 comments on commit 04742d0

Please sign in to comment.