[ZT] refactor of directive 'errorMessage', add timeout when updating message