fixing thrown error

noticed the directive was trying to throw an error on `elm` rather than `tElement`.