Update mybb-tpl.py

Added error messages.