You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom error type, is there a way to have a span provided with the error? what i mean is that a custom error type needs to satisfy the Default bound, and because of this logos has no way to provide a span describing where the error happened, something like this would be nice
enumError{UnknownToken{span:Range<usize>}}implCustomErrorforError{fnnew_custom_error(span:Range<usize>/* Other info if needed */) -> Self{Self{ span }}}
This would greatly improve diagnostics in my language since i have no way to tell the user of the language where the error happened.
The text was updated successfully, but these errors were encountered:
When using a custom error type, is there a way to have a span provided with the error? what i mean is that a custom error type needs to satisfy the
Default
bound, and because of this logos has no way to provide a span describing where the error happened, something like this would be niceThis would greatly improve diagnostics in my language since i have no way to tell the user of the language where the error happened.
The text was updated successfully, but these errors were encountered: