diff --git a/Lib/fontParts/base/glyph.py b/Lib/fontParts/base/glyph.py index 3a3b111c..d7e0be57 100644 --- a/Lib/fontParts/base/glyph.py +++ b/Lib/fontParts/base/glyph.py @@ -561,7 +561,7 @@ def _set_base_leftMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphLeftMargin(value) # Avoid mypy conflict with normalizeGlyphLeftMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for leftMargin cannot be None.") self._set_leftMargin(normalizedValue) def _get_leftMargin(self) -> Optional[IntFloatType]: @@ -629,7 +629,7 @@ def _set_base_rightMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphRightMargin(value) # Avoid mypy conflict with normalizeGlyphRightMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for rightMargin cannot be None.") self._set_rightMargin(normalizedValue) def _get_rightMargin(self) -> Optional[IntFloatType]: @@ -829,7 +829,7 @@ def _set_base_topMargin(self, value: IntFloatType) -> None: normalizedValue = normalizers.normalizeGlyphTopMargin(value) # Avoid mypy conflict with normalizeGlyphTopMargin -> Optional[IntFloat] if normalizedValue is None: - raise TypeError("The value for bottomMargin cannot be None.") + raise TypeError("The value for topMargin cannot be None.") self._set_topMargin(normalizedValue) def _get_topMargin(self) -> Optional[IntFloatType]: