make a shared error message partial