Catch type errors only
This catchs can-type error to check the presence of .type property in order to use it for message improvements.
This catchs can-type error to check the presence of .type property in order to use it for message improvements.