mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Have the towncrier generator complain if the output looks wrong
This commit is contained in:
parent
ebc7db12fb
commit
905ef6dadd
|
|
@ -845,7 +845,14 @@ class MatrixUnits(Units):
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
cwd=tc_path,
|
cwd=tc_path,
|
||||||
).strip().decode('UTF-8')
|
).strip().decode('UTF-8')
|
||||||
except subprocess.CalledProcessError:
|
|
||||||
|
# This is a bit of a hack, but it does mean that the log at least gets *something*
|
||||||
|
# to tell us it broke
|
||||||
|
if not raw_log.startswith("Unreleased Changes"):
|
||||||
|
logger.error(raw_log)
|
||||||
|
raw_log = ""
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
logger.error(e)
|
||||||
raw_log = ""
|
raw_log = ""
|
||||||
tc_lines = raw_log.splitlines()
|
tc_lines = raw_log.splitlines()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue