diff options
author | Leon Schuermann <leon.git@is.currently.online> | 2019-05-18 02:42:38 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-05-24 21:03:34 +0200 |
commit | ed457495c8c2e1f0d8caff919cd09fe238baa6b3 (patch) | |
tree | 834cfd07969c4a888915fab0e701571e6a78458e /lib/entry/libimagentrydatetime | |
parent | fcdded90b26b4b9d5c23032c8a3282e41aa08887 (diff) |
Introduce proper error handling in IdPathProvider
Prior to this change, the IdPathProvider implementation would be
responsible for exiting the process on insufficient / wrong arguments.
However, such error handling should be performed together with the
business logic and not in CLI-parsing related code.
This change introduces a clear separation: both parsing errors and
insufficient id path arguments can now be return from inside the
`get_ids`-method, and get passed up to the application logic to be
handled.
This change is reflected in all instances of IdPathProvider and their
surrounding code.
Signed-off-by: Leon Schuermann <leon.git@is.currently.online>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry/libimagentrydatetime')
0 files changed, 0 insertions, 0 deletions