update error handling for ft_ls