[fix] catch template precompile errors