set error message as one string