mirror of https://github.com/tLDP/python-tldp
fix publish function so it propagates return code
This commit is contained in:
parent
74544227b8
commit
9c3ed36bc2
|
@ -324,7 +324,8 @@ def build(config, docs, **kwargs):
|
|||
def publish(config, docs, **kwargs):
|
||||
config.build = True
|
||||
result = build(config, docs, **kwargs)
|
||||
if result == os.EX_OK:
|
||||
if result != os.EX_OK:
|
||||
return result
|
||||
for x, source in enumerate(docs, 1):
|
||||
logger.info("Publishing (%d of %d) to %s.",
|
||||
x, len(docs), source.output.dirname)
|
||||
|
|
Loading…
Reference in New Issue