From 0b3c232819cdf2b766336c20a64ebf57ba4b0bbb Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Tue, 22 Nov 2022 11:19:05 +0000 Subject: [PATCH] language: Clarify error message for unprocessed arguments "Unexpected argument(s)" would be another less ambiguous, shorter phrasing. --- artiq/language/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/language/environment.py b/artiq/language/environment.py index 9ce7034cc..1147e2333 100644 --- a/artiq/language/environment.py +++ b/artiq/language/environment.py @@ -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: