-
-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Request
Hi,
It would be useful to have additional information sent when http errors are triggered from the backend errors.
If you could grab the response.text() of the error and attach it to evt, it means I can pass the error that the server send directly to the user.
eg.
in go
http.Error(w, "The user has already been added previously.", http.StatusConflict)
in html
<div data-on:datastar-fetch="evt.detail.type == 'error' && alert(evt.detail.message)"></div>
Thanks
Datastar Version
v1rc6
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request