better error message when translator encounters a non-datatype

make it show what type it was trying to translate