diff --git a/src/pymatgen/symmetry/analyzer.py b/src/pymatgen/symmetry/analyzer.py index db2687ccf73..f20fd187820 100644 --- a/src/pymatgen/symmetry/analyzer.py +++ b/src/pymatgen/symmetry/analyzer.py @@ -77,7 +77,7 @@ def _get_symmetry_dataset(cell, symprec, angle_tolerance): """ dataset = spglib.get_symmetry_dataset(cell, symprec=symprec, angle_tolerance=angle_tolerance) if dataset is None: - raise SymmetryUndeterminedError + raise SymmetryUndeterminedError(spglib.get_error_message()) return dataset