nspcc-dev / neofs-contract

NeoFS smart-contract
GNU General Public License v3.0
10 stars 17 forks source link

Improve error messages #411

Closed smallhive closed 3 months ago

smallhive commented 5 months ago

Is your feature request related to a problem? Please describe.

The NNS contract has 7 panics with "invalid domain name format" message. But actually, there are 3 different reasons for this type of error

Describe the solution you'd like

Customize error messages for these 3 reasons, to determine what exactly it was

Describe alternatives you've considered

Revise all these places and maybe there are more than 3 error types

Additional context

Creating a container with a domain may be quite painful, but you don't know why