mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-09 10:23:35 -05:00
Merge pull request #134 from trail-of-forks/tob-better-errors
oidc-exchange: avoid splitting the error message
This commit is contained in:
commit
f3ce18f699
1 changed files with 1 additions and 4 deletions
|
@ -55,10 +55,7 @@ def die(msg: str) -> NoReturn:
|
||||||
with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io:
|
with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io:
|
||||||
print(msg, file=io)
|
print(msg, file=io)
|
||||||
|
|
||||||
# NOTE: `msg` is Markdown formatted, so we emit only the header line to
|
print(f"::error::OIDC exchange failure: {msg}", file=sys.stderr)
|
||||||
# avoid clogging the console log with a full Markdown formatted document.
|
|
||||||
header = msg.splitlines()[0]
|
|
||||||
print(f"::error::OIDC exchange failure: {header}", file=sys.stderr)
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue