From f858fdadfdf464482b00721d7791490aec65ba88 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 23:56:46 +0100 Subject: [PATCH] More verbose error --- patacrep/build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patacrep/build.py b/patacrep/build.py index 2ad9b3f5..4c52c589 100644 --- a/patacrep/build.py +++ b/patacrep/build.py @@ -229,6 +229,13 @@ class SongbookBuilder(object): ) except Exception as error: LOGGER.debug(error) + LOGGER.debug(os.getcwd()) + import subprocess + LOGGER.debug(subprocess.check_output( + ['dir', os.getcwd()], + stderr=subprocess.STDOUT, + universal_newlines=True + )) raise errors.LatexCompilationError(self.basename) if not self.interactive: