Export WaspHttpError
from wasp/client/api
#2767
Labels
shouldfix
We should do/fix this at some point
WaspHttpError
from wasp/client/api
#2767
Uh oh!
There was an error while loading. Please reload this page.
The
signup
andlogin
functions that are available to the user can throw theWaspHttpError
, but users can't import this class. It's useful for users to import his class to be able check if a thrown error is an instance ofWaspHttpError
.The error is thrown from the
handleApiError
fn: https://github.com/wasp-lang/wasp/blob/main/waspc/data/Generator/templates/sdk/wasp/api/index.ts#L110The text was updated successfully, but these errors were encountered: