Skip to content

Commit 3cbe175

Browse files
committed
Docs.
1 parent 3498a3e commit 3cbe175

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
Notable changes to the Fortran Error Handler will be documented here.
3+
4+
## [Unreleased]
5+
6+
## [1.0.1] - 2020-06-30
7+
### Added
8+
- Option to turn off printing of non-critical (warning) errors on trigger. Configured by `triggerWarnings` parameter on `ErrorHandler%init(...)`.
9+
- This CHANGELOG.
10+
11+
### Fixed
12+
- A few corrections to documentation.
13+
14+
## [1.0] - 2020-06-05
15+
### Added
16+
- First major release.
17+
18+
[Unreleased]: https://github.com/samharrison7/fortran-error-handler/compare/1.0.1...HEAD
19+
[1.0.1]: https://github.com/samharrison7/fortran-error-hander/compare/v1.0...v1.0.1
20+
[1.0]: https://github.com/samharrison7/fortran-error-hander/compare/v0.3-beta2...v1.0

doc/ErrorCriteria.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Initialising ErrorCriteria serves the purpose of [initialising its parent](Error
3333
| `character(len=*), optional :: criticalPrefix` | Custom prefix to be prepended to critical error messages. | "Error:" |
3434
| `character(len=*), optional :: warningPrefix` | Custom prefix to non-critical (warning) error messages. | "Warning:" |
3535
| `character(len=*), optional :: messageSuffix` | Custom suffix to be appended to error message. | - |
36-
| `logical, optional :: bashColors` | Should colors be displayed in output to bash consoles? | .true. |
36+
| `logical, optional :: bashColors` | Should colors be displayed in output to bash consoles? | `.true.` |
3737

3838
For example:
3939

doc/ErrorHandler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For single errors, `add` acts as a generic to the ErrorHandler's `addErrorInstan
5252
| :--- | :--- | :--- |
5353
| `integer, optional :: code` | Error code to add. | - |
5454
| `character(len=*), optional :: message` | Message for the error. | "" |
55-
| `logical, optional :: isCritical` | Is the error critical? | .true. |
55+
| `logical, optional :: isCritical` | Is the error critical? | `.true.` |
5656
| `type(ErrorInstance), optional :: error` | ErrorInstance to add, if a code hasn't been specified. | - |
5757

5858
For example:
@@ -69,7 +69,7 @@ For multiple errors input as an array of codes and optional messages and areCrit
6969
| :--- | :--- | :--- |
7070
| `integer :: codes(:)` | Array of error codes to add. | - |
7171
| `character(len=*), optional :: messages(:)` | Corresponding messages for the errors. | "" |
72-
| `logical, optional :: areCritical(:)` | Are the errors critical? | .true. |
72+
| `logical, optional :: areCritical(:)` | Are the errors critical? | `.true.` |
7373

7474
For example:
7575

doc/ErrorInstance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ An `ErrorInstance(code, message, isCritical, trace)` interface is provided so th
1414

1515
| Parameter declaration | Description | Default |
1616
| :--- | :--- | :--- |
17-
| `integer, optional :: code` | The error code. | 1 |
18-
| `character(len=*), optional :: message` | Default message for the error (which there is plenty of opportunity to override). | "" |
19-
| `logical, optional :: isCritical` | Is the error critical (i.e., should it stop the program)? | .true. |
17+
| `integer, optional :: code` | The error code. | `1` |
18+
| `character(len=*), optional :: message` | Default message for the error (which there is plenty of opportunity to override). | `""` |
19+
| `logical, optional :: isCritical` | Is the error critical (i.e., should it stop the program)? | `.true.` |
2020
| `character(len=*), optional :: trace(:)` | Custom trace for the error | - |
2121

2222
For example:

0 commit comments

Comments
 (0)