Skip to content

Commit a33085d

Browse files
authored
Changed invalid_index_error to index_invalid_error
Made the error code name consistent with that used for my bitsets and error_codes modules, where for ease of lookup I put what is invalid before the invalid.
1 parent 1ed8872 commit a33085d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stdlib_logger.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module stdlib_logger
3333
!! in their optional `stat` arguments. The constants are as follows.
3434
!! `success` indicates that no error has occurred. `close_failure`
3535
!! indicates that a `close` statement for an I/O unit failed.
36-
!! `invalid_index_error` indicates that `column` was invalid for
36+
!! `index_invalid_error` indicates that `column` was invalid for
3737
!! the given `line`. `open_failure` indicates that an `open` statement
3838
!! failed. `read_only_error` indicates that an output unit did not have a
3939
!! `"write"` or `"readwrite"` action. `non_sequential_error` indicates
@@ -60,7 +60,7 @@ module stdlib_logger
6060
integer, parameter, public :: &
6161
success = 0, &
6262
close_failure = 1, &
63-
invalid_index_error = 2, &
63+
index_invalid_error = 2, &
6464
non_sequential_error = 3, &
6565
open_failure = 4, &
6666
read_only_error = 5, &
@@ -1103,7 +1103,7 @@ subroutine log_text_error( self, line, column, summary, filename, &
11031103
!! The symbol used to mark the column wher the error was first detected
11041104
integer, intent(out), optional :: stat
11051105
!! Integer flag that an error has occurred. Has the value `success` if no
1106-
!! error hass occurred, `invalid_index` if `column` is less than zero or
1106+
!! error hass occurred, `index_invalid_error` if `column` is less than zero or
11071107
!! greater than `len(line)`, and `write_failure` if any of the `write` statements
11081108
!! has failed.
11091109

@@ -1119,7 +1119,7 @@ subroutine log_text_error( self, line, column, summary, filename, &
11191119

11201120
if ( column < 0 .or. column > len( line ) + 1 ) then
11211121
if ( present(stat) ) then
1122-
stat = invalid_index_error
1122+
stat = index_invalid_error
11231123
return
11241124
else
11251125
call self % log_error( invalid_column, &

0 commit comments

Comments
 (0)