Sweden is one of the most generous countries in the world when it comes to international aid. Along with other Scandinavian countries, it has given bounteously to less fortunate nations for many years. With a population of under 10 million, it also takes more than its fair share of asylum seekers - an estimated 190,000 last year, with a further 100,000 to 170,000 expected to arrive in 2016.

This is proving to be an expensive business. The Swedish migration agency says the cost of assimilating such a large number of asylum seekers will be €6.4bn (£4.4bn) this year – and a debate is raging about whether the aid budget should be raided to help meet the bill. In 2015, 25% of the aid budget was spent on refugees. One proposal is to raise that figure to 60%.

Final figures for development assistance collated by the Paris-based Organisation for Economic Cooperation and Development show that global aid spending rose to a record level of $137.2bn (£94bn) in 2014 – an increase of 1.2% on the previous year. But the money is not going to those countries that are in the greatest need. Spending on the least developed countries (LDCs) fell by almost 5% and as a share of the total fell below 30% for the first time since 2005.

Donor countries are increasingly dipping into their aid budgets to deal with the migration crisis or diverting money that would previously have gone to sub-Saharan Africa to countries that are deemed to be fragile, such as Egypt, Pakistan and Syria, but are not classified as LDCs.

What’s more, the trend is likely to have continued and accelerated in 2015, a year that saw far more people arriving in Europe from north Africa and the Middle East. Italy was already spending 61% of its aid budget on refugees in 2014. For Greece, the other country on the front line, the figure was 46%.

It is hardly surprising that the governments in Rome and Athens have responded in this way. Both have had austerity measures foisted upon them and are seeking to make ends meet as best they can. The fact is, though, that the entire development assistance system is creaking under the strain at a time when demands for aid are increasing.

In New York City last September, there was a grand gathering at the United Nations where world leaders committed themselves to eradicate poverty within a generation. This year, the wealthier nations are going to be asked to back up their warm words with hard cash. The Global Fund, which fights HIV/Aids, malaria and tuberculosis is aiming to raise at least $12bn. The World Bank is looking for at least four times that much to replenish its International Development Association Fund, which provides cheap or interest-free loans to the poorest countries. The African Development Bank will also be rattling the tin.

That’s even before donor countries have to make good on pledges of financial assistance made in Paris last month to help developing nations cope with the effects of climate change.

Adrian Lovett, Europe executive director for the ONE campaign, said: “As more aid is diverted to offer vital help to the increasing numbers of refugees arriving in richer countries, people in desperately poor nations are paying the price.

The aid pie is growing, but the poorest countries get a smaller slice | Adrian Lovett

Read more

“Last year, world leaders promised to reverse the decline in aid to the least developed countries. Instead, it has got worse – and increasing numbers of refugees in 2015 mean the problem has almost certainly got even more serious.”

That’s true. It is also the case that aid is becoming an increasingly fraught subject. David Cameron has been under fire for increasing Britain’s aid spending to 0.7% of national income rather than spending the money on flood defences at home. Angela Merkel is almost certain to face pressure to spend some of her aid budget on the refugees she has welcomed into Germany.

Britain’s international development secretary, Justine Greening, says the UK’s aid budget is money well spent. Her argument is that refugees are arriving in Europe because they lack the opportunity to have a decent life in their own countries. The bills being faced by Sweden, Italy and Greece, she would argue, are the price of dealing with the symptom rather than the cause.

This is a sound argument. Quite often, the same people who are loudest in their criticism of overseas aid are also those demanding a zero tolerance approach towards refugees and asylum seekers. The rationale for aid is that it helps build up the economic resilience of poor countries and makes migration less attractive.

The aid critics respond by saying that too much of the money is being wasted. They ask why the health systems of Liberia, Guinea and Sierra Leone proved so woefully inadequate during the Ebola crisis and have a ready answer: the money that should have gone on building hospitals and training doctors and hospitals across Africa all too often ended up being spent on expensive western consultants or in the offshore bank accounts of corrupt politicians.

Unless supporters of aid are prepared to see public support for overseas development assistance dribble away, this charge needs to be addressed. Continued political support for aid is important because 2016 is going to be a tough year for many LDCs. The collapse in commodity prices and the slowdown in China is starting to bite. Budget deficits are rising and there are already whispers of a new debt crisis.

So what needs to be done? First, there has to be tougher action to prevent corruption. The deals done by big western multi-nationals in Africa must be made more transparent, tougher action is needed against tax havens to prevent capital flight.

Second, western countries need to recognise that prevention is better than cure. The lesson to be learned from Ebola is that it is better policy to have a plan for long-term economic development rather than to respond to crises when they arise. There should be a robust defence of aid where there is clear evidence that it has helped, as in the fight against HIV/Aids and malaria, but also a recognition of where it has been lacking. Africa requires better infrastructure but the building blocks of development – energy, water and sanitation, education and transport – don’t come cheap.

If those two conditions are satisfied, and there is no reason why they shouldn’t be, western donors need to stop short-changing the poor. Spending money that should be going to save lives and build futures in Africa on refugee camps in Europe is not just shabby, it is also an admission of failure.