Error messages with TS.

error messages with TS