Improved error handling when updating products