Skip to content

Commit daeb19e

Browse files
committed
change default message for check() and clarify examples
1 parent cd30ca7 commit daeb19e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/stdlib_experimental_error.f90

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ subroutine check(condition, msg, code, warn)
3333
character(*), intent(in), optional :: msg
3434
integer, intent(in), optional :: code
3535
logical, intent(in), optional :: warn
36-
character(*), parameter :: msg_default = 'Test failed.'
36+
character(*), parameter :: msg_default = 'Check failed.'
3737

3838
! Examples
3939
! --------
4040
!
41-
! ! Stops the program with exit code 1 and prints 'Test failed.'
41+
! ! If a /= 5, stops the program with exit code 1
42+
! ! and prints 'Check failed.'
4243
! call check(a == 5)
4344
!
4445
! ! As above, but prints 'a == 5 failed.'

0 commit comments

Comments
 (0)