Fix Delhivery error handling in template