authmate: Use different exit codes #152

Closed
opened 2023-06-23 13:41:10 +00:00 by dkirillov · 1 comment
Member

After #151 we return exit code 1 on any error. It would be nice to return different codes on different errors but more wisely than before #151

Describe the solution you'd like

We should form set of well-known errors that will have different exist codes.

## Is your feature request related to a problem? Please describe. After https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pulls/151 we return exit code 1 on any error. It would be nice to return different codes on different errors but more wisely than before #151 ## Describe the solution you'd like We should form set of well-known errors that will have different exist codes.
ironbee self-assigned this 2023-08-22 12:05:15 +00:00
Contributor

Pull request adds the following errors:

  • preparationError - various error related to initialisation, parsing provided arguments, acquiring intermediate data.
  • frostFSInitError - errors related to FrostFS functioning.
  • businessLogicError - errors in main (business) goals of the authmate's modules.

This is an initial classification and may be changed an/or extended in future.

Pull request adds the following errors: - preparationError - various error related to initialisation, parsing provided arguments, acquiring intermediate data. - frostFSInitError - errors related to FrostFS functioning. - businessLogicError - errors in main (business) goals of the authmate's modules. This is an initial classification and may be changed an/or extended in future.
alexvanin added this to the v0.28.0 milestone 2023-09-08 13:07:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#152
No description provided.