problem to compile in mongohub
forgot to initialize the error variable