Skip to content

Commit

Permalink
Merge pull request #56 from mrysav/main
Browse files Browse the repository at this point in the history
Print diagnostic message if snapshot creation is not SUCCESS or ACCEPTED
  • Loading branch information
mrysav committed Jan 12, 2024
2 parents ba29f82 + f8d3a8a commit 7a59513
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ export async function submitSnapshot(
...snapshot
}
)
const result = response.data.result
if (result === 'SUCCESS' || result === 'ACCEPTED') {
core.notice(
`Snapshot successfully created at ${response.data.created_at.toString()}`
)
} else {
core.error(
`Snapshot creation failed with result: "${result}: ${response.data.message}"`
)
}
core.notice(
`Snapshot successfully created at ${response.data.created_at.toString()}`
)
Expand Down

0 comments on commit 7a59513

Please sign in to comment.