Update error message, set permissions in the workflow

This commit is contained in:
MaksimZhukov
2021-05-24 17:14:28 +03:00
parent 827de551fd
commit ead7541b7c
5 changed files with 15 additions and 8 deletions

View File

@ -28,7 +28,9 @@ async function findTag(
if (err.status === 404) {
return null;
} else {
throw err;
throw new Error(
`Retrieving refs failed with the following error: ${err}`
);
}
}
}
@ -68,7 +70,9 @@ export async function validateIfReleaseIsPublished(
`No GitHub release found for the ${tag} tag`
);
} else {
throw err;
throw new Error(
`Retrieving releases failed with the following error: ${err}`
);
}
}
}