@@ -61,7 +61,7 @@ func newInvalidStyleID(styleID int) error {
6161// newFieldLengthError defined the error message on receiving the field length
6262// overflow.
6363func newFieldLengthError (name string ) error {
64- return fmt .Errorf ("field %s must be less or equal than 255 characters" , name )
64+ return fmt .Errorf ("field %s must be less than or equal to 255 characters" , name )
6565}
6666
6767// newCellNameToCoordinatesError defined the error message on converts
@@ -76,10 +76,10 @@ var (
7676 ErrStreamSetColWidth = errors .New ("must call the SetColWidth function before the SetRow function" )
7777 // ErrColumnNumber defined the error message on receive an invalid column
7878 // number.
79- ErrColumnNumber = errors . New ( " column number exceeds maximum limit" )
79+ ErrColumnNumber = fmt . Errorf ( `the column number must be greater than or equal to %d and less than or equal to %d` , MinColumns , MaxColumns )
8080 // ErrColumnWidth defined the error message on receive an invalid column
8181 // width.
82- ErrColumnWidth = fmt .Errorf ("the width of the column must be smaller than or equal to %d characters" , MaxColumnWidth )
82+ ErrColumnWidth = fmt .Errorf ("the width of the column must be less than or equal to %d characters" , MaxColumnWidth )
8383 // ErrOutlineLevel defined the error message on receive an invalid outline
8484 // level number.
8585 ErrOutlineLevel = errors .New ("invalid outline level" )
@@ -102,7 +102,7 @@ var (
102102 ErrMaxRows = errors .New ("row number exceeds maximum limit" )
103103 // ErrMaxRowHeight defined the error message on receive an invalid row
104104 // height.
105- ErrMaxRowHeight = fmt .Errorf ("the height of the row must be smaller than or equal to %d points" , MaxRowHeight )
105+ ErrMaxRowHeight = fmt .Errorf ("the height of the row must be less than or equal to %d points" , MaxRowHeight )
106106 // ErrImgExt defined the error message on receive an unsupported image
107107 // extension.
108108 ErrImgExt = errors .New ("unsupported image extension" )
@@ -143,7 +143,7 @@ var (
143143 ErrCustomNumFmt = errors .New ("custom number format can not be empty" )
144144 // ErrFontLength defined the error message on the length of the font
145145 // family name overflow.
146- ErrFontLength = fmt .Errorf ("the length of the font family name must be smaller than or equal to %d" , MaxFontFamilyLength )
146+ ErrFontLength = fmt .Errorf ("the length of the font family name must be less than or equal to %d" , MaxFontFamilyLength )
147147 // ErrFontSize defined the error message on the size of the font is invalid.
148148 ErrFontSize = fmt .Errorf ("font size must be between %d and %d points" , MinFontSize , MaxFontSize )
149149 // ErrSheetIdx defined the error message on receive the invalid worksheet
0 commit comments