Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

[feat] Display a link to error details #8

Open
AsPulse opened this issue Mar 10, 2023 · 0 comments
Open

[feat] Display a link to error details #8

AsPulse opened this issue Mar 10, 2023 · 0 comments

Comments

@AsPulse
Copy link
Member

AsPulse commented Mar 10, 2023

When a SugarFormError occurs, a link to the documentation is annexed. (after documentation is completed)

AsIs

> throw new SugarFormError('SF0001')
Uncaught SugarFormError: SF0001 (SugarFormTypeError)
Incorrect type detected.
This may be a bug in SugarForm itself, or you may be ignoring TypeScript instructions.

    at <anonymous>:2:7

ToBe

> throw new SugarFormError('SF0001')
Uncaught SugarFormError: SF0001 (SugarFormTypeError)
Incorrect type detected.
This may be a bug in SugarForm itself, or you may be ignoring TypeScript instructions.

See details: https://docs.sugarform.io/error/sf0001
    at <anonymous>:2:7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant