refactoring error message handling - 9 - continued - gifts/index ok