Merge pull request #11 from paper-spa/swallow-configure-pages-error

catch configure-pages error
This commit is contained in:
Mingzi
2022-06-30 12:20:21 -07:00
committed by GitHub
3 changed files with 3 additions and 5 deletions

3
dist/index.js vendored
View File

@@ -14842,8 +14842,7 @@ async function setPagesPath({staticSiteGenerator, path}) {
configParser.parse()
} catch (error) {
core.error('Set pages path in the static site generator config failed', error)
throw error
core.warning(`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${path}. Please ensure your framework is configured to generate relative links appropriately.`, error)
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -39,8 +39,7 @@ async function setPagesPath({staticSiteGenerator, path}) {
configParser.parse()
} catch (error) {
core.error('Set pages path in the static site generator config failed', error)
throw error
core.warning(`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${path}. Please ensure your framework is configured to generate relative links appropriately.`, error)
}
}