Skip to content

Conversation

joeycozza
Copy link

  • Wrap the index-revision-replace code in a try/catch. Log the error message in the catch, but DON'T throw the error.
    • By not throwing the error in the plugin, the already existing error logging will log the underlying issues as expected
  • add, (and commented out) a tap into afterCompile hook to check if errors exist. This may help in debugging issues in the future since the whole stack trace is logged.

@joeycozza
Copy link
Author

The logging will look like this. (ignore the joey brosky logs of course. :) )
Screenshot 2024-12-05 at 5 23 15 PM

@joeycozza joeycozza merged commit 38f92c3 into frontierMaster Dec 6, 2024
2 checks passed
@joeycozza joeycozza deleted the betterErrorLogging branch December 6, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant