Skip to content
Permalink
Browse files

fix(publisher): throw custom 404 if we cant find the release

  • Loading branch information
MarshallOfSound committed Dec 29, 2016
1 parent 8653b62 commit 6f4e1ed4802e960ffd40257331e57ffc4600ff59
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/electron-forge-publish.js
@@ -63,6 +63,9 @@ const main = async () => {
repo: forgeConfig.github_repository.name,
per_page: 100,
})).find(testRelease => testRelease.tag_name === program.tag || `v${packageJSON.version}`);
if (!release) {
throw { code: 404 }; // eslint-disable-line
}
} catch (err) {
if (err.code === 404) {
// Release does not exist, let's make it

0 comments on commit 6f4e1ed

Please sign in to comment.
You can’t perform that action at this time.