From cfc138892d0f731162c3a93d83513447f89c0c56 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 2 Mar 2021 18:36:53 +0100 Subject: Improved error message when exporting data --- lesana/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lesana/command.py b/lesana/command.py index 61393e9..7ca50cf 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -357,7 +357,8 @@ class Export(Command): try: data = ruamel.yaml.load(rendered, ruamel.yaml.RoundTripLoader) except ruamel.yaml.YAMLError as e: - logging.error("Error converting entry: {}".format(entry)) + logging.error("Error loading exported entry: {}".format(entry)) + logging.error("exported data was\n{}".format(rendered)) logging.error("{}".format(e)) sys.exit(1) e = self.entry_class(destination, data=data) -- cgit v1.2.3