formatting; add error message for search formatting