inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
414 stars 41 forks source link

INN-2152 Slim down "pretty errors" before sending to Inngest #360

Closed jpwilliams closed 11 months ago

jpwilliams commented 11 months ago

Summary

Slims down "pretty errors," whose name is already subjective, before sending them to Inngest, by stripping ANSI codes and removing immediate debugging information.

Before image
Before After

The UI could access the code being sent (e.g. AUTOMATIC_PARALLEL_INDEXING), but it's probably nicer to send this code inside serialized errors in the future, allowing the UI to provide hints and links to documentation, inclusive of short links such as https://innge.st/ERR_CODE_HERE.

Checklist

Related

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: 2ce4507bedf136634e6f4d11710c611bff7c4570

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------- | ----- | | inngest | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR