append: improved error message