Move error template to share module