[TS] Slightly improve logging in TS trait calls that fail