HPCC-8329 Improve the error desciption for a dictionary

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>