aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-03-02 18:36:53 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-03-02 18:36:53 +0100
commitcfc138892d0f731162c3a93d83513447f89c0c56 (patch)
tree44a6311e72283414f15412afbdb8618eeb379b2e
parented8b6ad28bacca1db642fa1855ebb7c5f882307e (diff)
Improved error message when exporting data
-rw-r--r--lesana/command.py3
1 files changed, 2 insertions, 1 deletions
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)