Skip to content

Commit

Permalink
Make the qualifiers manager errors clearer
Browse files Browse the repository at this point in the history
Add the name of the spec in the errors messages to help finding out
where the errors come from.
  • Loading branch information
JulienBortolussiAda committed Jun 12, 2023
1 parent ae2da1c commit d277b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e3/anod/qualifiers_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def build_space_name(self) -> str:
def __error(self, msg: str) -> None:
"""Raise an error and print the helper."""
print(self.__get_helper())
raise AnodError(msg)
raise AnodError(self.anod_instance.name + ": " + msg)

def __get_helper(self) -> str:
"""Return an helper for the current state of Qualifiers.
Expand Down

0 comments on commit d277b17

Please sign in to comment.