Improved CLI device index error message