actions / configure-pages

An action to enable Pages and extract various metadata about a site. It can also be used to configure various static site generators we support as starter workflows.
https://pages.github.com
MIT License
148 stars 56 forks source link

Convert errors into Actions-compatible logging with annotations #138

Closed JamesMGreene closed 7 months ago

JamesMGreene commented 7 months ago

... As a result, if generator_config_file is not specified, then errors within the setPagesConfig function will always be blamed on an incorrect file extension.

The behavior describes in that blurb is mostly due to the fact that we were incorrectly passing the Error object as the second parameter to core.error/core.warning/core.notice when those methods are actually expecting an AnnotationProperties object with error-like metadata.

This PR updates the messages being logged to include the error.message, as well as including the error stack frame information in the AnnotationProperties optional arugment.