From 97bafdc3d27b3fd372a2aeeb7664ba133d9b507f Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Tue, 24 Dec 2024 11:22:04 -0600 Subject: [PATCH] restore location --- modules/request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/request.py b/modules/request.py index 0c5a1b5b..ad93bef6 100644 --- a/modules/request.py +++ b/modules/request.py @@ -260,7 +260,8 @@ class YAML: self.data = self.yaml.load(fp) except ruamel.yaml.error.YAMLError as e: if "found character '\\t' that cannot start any token" in e.problem: - e = "Tabs are not allowed in YAML files; only spaces are allowed" + location = f"{e.args[3].name}; line {e.args[3].line + 1} column {e.args[3].column + 1}" + e = f"Tabs are not allowed in YAML files; only spaces are allowed.\nfirst tab character found at:\n{location}" else: e = str(e).replace("\n", "\n ")