From ea29ccc08c5128e49d7b7744d6fe4fcac05e93de Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 21 Mar 2023 11:17:21 -0400 Subject: [PATCH] oidc-exchange: avoid splitting the error message Signed-off-by: William Woodruff --- oidc-exchange.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/oidc-exchange.py b/oidc-exchange.py index 806a609..1d2a3f1 100644 --- a/oidc-exchange.py +++ b/oidc-exchange.py @@ -55,10 +55,7 @@ def die(msg: str) -> NoReturn: with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io: print(msg, file=io) - # NOTE: `msg` is Markdown formatted, so we emit only the header line to - # 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) + print(f"::error::OIDC exchange failure: {msg}", file=sys.stderr) sys.exit(1)