From 42deb1497710956f9caf541d6c2102abedf43d29 Mon Sep 17 00:00:00 2001 From: Nikolai Kapralov <4dvlup@gmail.com> Date: Fri, 4 Oct 2024 14:34:42 +0200 Subject: [PATCH] Always mention coupling edge in the error message --- src/meegsim/_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meegsim/_check.py b/src/meegsim/_check.py index bfe3d8e..f93465f 100644 --- a/src/meegsim/_check.py +++ b/src/meegsim/_check.py @@ -471,7 +471,7 @@ def check_coupling(coupling_edge, coupling_params, common_params, names, current if not callable(method): raise ValueError( f'Expected coupling method to be a callable, ' - f'got {type(method).__name__}' + f'got {type(method).__name__} for edge {coupling_edge}' ) # Check that all required coupling parameters were specified for the selected method