From 64e564c5fc3286a2a8df7cca5276967cd17fc173 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 18 Nov 2022 15:59:43 +0000 Subject: [PATCH] fix: error handling in read_rwms improved. --- pyerrors/input/openQCD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index ebe7812f..5ac279b1 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -55,7 +55,7 @@ def read_rwms(path, prefix, version='2.0', names=None, **kwargs): break if not ls: - raise Exception('Error, directory not found') + raise Exception(f"Error, directory '{path}' not found") if 'files' in kwargs: ls = kwargs.get('files') else: