add error log
Merge https://github.com/Luweimy/RichLabel