[NOTE: the problem is solved by the "try catch library". So, just ignore this post ]
I propose to show up a popup ballon when a RESULT block is executed inside a command custom block. By adding this possibility, developers of libraries will be able to add error messages to their custom blocks.
For an example, see this project.