Skip to content

Commit

Permalink
Updated error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Jan 29, 2020
1 parent 1870b35 commit e9d170d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ async function run() {
})

if (!data) {
core.setFailed(`"${tag}" was not found or a release ID is not associated with it.`)
console.log(JSON.stringify(data, null, 2))
core.setFailed(`Tag "${tag}" was not found or a release ID is not associated with it.`)
return
}

Expand All @@ -40,9 +41,8 @@ async function run() {
release_id: id
})

console.log(data)

if (!data) {
console.log(JSON.stringify(data, null, 2))
core.setFailed(`Release "${id}" was not found.`)
return
}
Expand Down

0 comments on commit e9d170d

Please sign in to comment.