Print JSON

This commit is contained in:
Luc Perkins 2024-05-20 08:36:04 -03:00
parent c930804757
commit 39876685c8
No known key found for this signature in database
GPG key ID: 16DB1108FB591835

View file

@ -312,9 +312,8 @@ class MagicNixCacheAction {
.json();
if (res.status !== 200) {
actionsCore.info(JSON.stringify(res));
this.failInStrictMode(
`Failed to trigger workflow finish hook; expected HTTP status 200 from POST to /api/workflow-finish but got ${res.status} instead`,
`Failed to trigger workflow finish hook. Response: ${JSON.stringify(res)}`,
);
}