Skip to content

Commit

Permalink
better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gautemo committed Mar 28, 2020
1 parent 881aff4 commit ed9ce6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ try{
makeSureFoldersAreCreated(file);
fs.writeFileSync(file, JSON.stringify(data, null, 2));
console.log(`successfully saved data from ${url} to ${file}`);
});
})
.catch(error => core.setFailed(error.message));
}catch(error){
core.setFailed(error.message);
}

0 comments on commit ed9ce6f

Please sign in to comment.