Skip to content

Commit

Permalink
Make "Get Pages failed" error message more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca authored and GitHub committed Mar 25, 2023
1 parent 2a4c30e commit 17109fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
pageObject = await getPagesSite({ githubToken })
} catch (error) {
if (!enablement) {
core.error('Get Pages site failed', error)
core.error(
'Get Pages site failed. Make sure a version of your website is already deployed'
+ 'on GitHub Pages, or consider setting `enablemet: true` for this action',
error
)
throw error
}
core.warning('Get Pages site failed', error)
Expand Down

0 comments on commit 17109fe

Please sign in to comment.