Skip to content

Commit

Permalink
Merge pull request #11 from paper-spa/swallow-configure-pages-error
Browse files Browse the repository at this point in the history
catch configure-pages error
  • Loading branch information
Mingzi authored and GitHub committed Jun 30, 2022
2 parents b25b367 + 898d1f4 commit 77988f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/set-pages-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 77988f1

Please sign in to comment.