Hi Krinkle,
I've added a error support for the messages functions so please see at the both patches in the SVN-directory.