improved errors reporting on templates bundling