Error handling i  k-walker