The European Union attitude towards the Syrian refugee crisis

What was the European Union attitude towards the Syrian refugee crisis and what might have been achieved?