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.
... 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.
The behavior describes in that blurb is mostly due to the fact that we were incorrectly passing the
Error
object as the second parameter tocore.error
/core.warning
/core.notice
when those methods are actually expecting anAnnotationProperties
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 theAnnotationProperties
optional arugment.