When using a register directive, there is an error if the given type is not valid. This error was really not clear for the user.
I saw that some code was commented so I removed it and put another check for that problem with the correct error message.
When using a register directive, there is an error if the given type is not valid. This error was really not clear for the user. I saw that some code was commented so I removed it and put another check for that problem with the correct error message.
Correct usage
Bad usage