Patch [ 1586791 ] better error msgs for some TypeErrors
5 files changed