2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

language: Clarify error message for unprocessed arguments

"Unexpected argument(s)" would be another less ambiguous,
shorter phrasing.
This commit is contained in:
David Nadlinger 2022-11-22 11:19:05 +00:00
parent d45f9b6950
commit 0b3c232819

View File

@ -229,7 +229,7 @@ class ProcessArgumentManager:
unprocessed = set(self.unprocessed_arguments.keys()) -\
self._processed_arguments
if unprocessed:
raise AttributeError("Invalid argument(s): " +
raise AttributeError("Supplied argument(s) not queried in experiment: " +
", ".join(unprocessed))
class HasEnvironment: