Added variable name to TypeError