Passengers were offered a replacement bus service to complete their journey to Edinburgh.