The main rail link between Edinburgh and Glasgow re-opened last night, some 18 hours after through trains were halted by a landslip.
It came as ScotRail was criticised for leaving late-night passengers in the dark waiting for a replacement bus over part of the route.
Engineers completed repairs to a wall section which collapsed onto the track at Winchburgh in West Lothian.
Passengers were switched to buses between Linlithgow and Edinburgh Park or urged to use one of three other lines between Edinburgh and Glasgow.
Buses also replaced trains on the Edinburgh-Dunblane line.
However, up to 70 travellers on the last train from Glasgow on Wednesday night had to wait 40 minutes for a replacement bus at Linlithgow, not knowing if it would show up.
One passenger said no staff had been on hand or information provided about the half-hourly shuttle.
The train arrived in Linlithgow at 12:10am and the bus should have arrived to collect them shortly after 12:30am, but ScotRail said it was delayed until about 12:50am. A passenger, who asked to be called David, said he had become fed up after waiting half an hour and took a taxi home instead.
He had tried phoning ScotRail, but the helpline was closed.
The 35-year-old said: “When we got on the train, we were told there would be a bus from Linlithgow. But when we arrived, there was no sign of it or what to do.
“We were just dumped in the middle of the night and left to stand in the dark.
“Nobody knew anything. It was an awful experience.”
However, he said when he managed to contact ScotRail yesterday it had apologised and offered a full refund of his train ticket and taxi fare.
The ScotRail Alliance admitted there were no staff on duty because the station buildings had closed.
But it said passengers could have made contact via help points on the platform.
A spokesperson said: “We aim to arrange for bus and train times to be as closely aligned as possible and are sorry some customers had to wait longer than anticipated last night.
“The landslip at Winchburgh has caused significant disruption to services and we hope customers understand we’re doing everything we can to keep them moving and get them where they need to be.”