It didn’t take long for Barack Obama to make the first mistake of his presidency.