nspcc-dev / neofs-contract

NeoFS smart-contract
Other
9 stars 17 forks source link

Improve error messages #411

Open smallhive opened 2 weeks ago

smallhive commented 2 weeks 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