coding style
quote the block type

This happened to me :

- the block type was null
- the message was :
   > The block type does not exist

A better message would be :
> The block type "" does not exist