diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-10-21 16:41:19 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-10-21 18:22:02 +0200 |
commit | 09e759d5486eba13c2b3804a0d07d132a3499d75 (patch) | |
tree | 27bbfed2ac2abca6245a226f9f5876d314fb5b44 /web-export | |
parent | 30dda2029db0243b079d906b9bd14ba8e3b8888a (diff) |
web-export: Fix syntax in debug message
The syntax was incorrect, so the debug message threw an exception
instead of printing the error message. This also makes the html-chunks
generation report the command-line that caused the error.
Diffstat (limited to 'web-export')
-rwxr-xr-x | web-export/update.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web-export/update.py b/web-export/update.py index 3f5188b..8978198 100755 --- a/web-export/update.py +++ b/web-export/update.py @@ -201,14 +201,14 @@ class SpecObject(): if one_chunk_command: retcode = subprocess.call(one_chunk_command) if retcode != 0: - raise Exception('Cannot convert \'%s\' to HTML.\nThe command was %s' % path % one_chunk_command) + raise Exception('Cannot convert \'%s\' to HTML.\nThe command was %s' % (path, one_chunk_command)) self.one_chunk = True if multiple_chunks_command: safe_mkdir(html_dir) retcode = subprocess.call(multiple_chunks_command) if retcode != 0: - raise Exception('Cannot convert \'%s\' to multiple-chunks HTML.' % path) + raise Exception('Cannot convert \'%s\' to multiple-chunks HTML.\nThe command was %s' % (path, multiple_chunks_command)) self.multiple_chunks = True def latestize(self): |