mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 08:06:09 +00:00
Reformat error message
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -16013,7 +16013,10 @@ 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. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
|
||||
error
|
||||
)
|
||||
throw error
|
||||
}
|
||||
core.warning('Get Pages site failed', error)
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -43,8 +43,7 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
||||
} catch (error) {
|
||||
if (!enablement) {
|
||||
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',
|
||||
'Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
|
||||
error
|
||||
)
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user