Add error message to debug panel