diff --git a/dist/index.js b/dist/index.js index f334ed8..e036381 100644 --- a/dist/index.js +++ b/dist/index.js @@ -72,6 +72,10 @@ function updateRepositoryDescription(token, repository, description, fullDescrip 'Content-Type': 'application/json', Authorization: `JWT ${token}` } + }).then(res => { + if (!res.ok) { + throw new Error(res.statusText); + } }); }); } diff --git a/src/dockerhub-helper.ts b/src/dockerhub-helper.ts index 1aeccd8..c63737e 100644 --- a/src/dockerhub-helper.ts +++ b/src/dockerhub-helper.ts @@ -40,5 +40,9 @@ export async function updateRepositoryDescription( 'Content-Type': 'application/json', Authorization: `JWT ${token}` } + }).then(res => { + if (!res.ok) { + throw new Error(res.statusText) + } }) }