Greece 's recently-elected socialist government , mindful that the 2008 riots that caused millions of euros in damages badly discredited its conservative predecessors , had warned protesters against resorting to violence .