Replace logging erro and return undefined for a throw new Error

This commit is contained in:
ebarrios
2021-02-17 12:23:16 +01:00
parent 36a4ede275
commit 233b78a42e
@@ -64,8 +64,9 @@ export class GithubPublisher implements PublisherBase {
});
if (!token) {
logger.error(`No token could be acquired for URL: ${values.storePath}`);
return { remoteUrl: '', catalogInfoUrl: undefined };
throw new Error(
`No token could be acquired for URL: ${values.storePath}`,
);
}
const client = new Octokit({