uatuko / ruek

🔐 Lightning fast, global scale authorization service without the overhead of a yet another DSL.
Apache License 2.0
95 stars 7 forks source link

Add error handling #50

Closed uatuko closed 1 year ago

uatuko commented 1 year ago

Add a bit of error handling to endpoints.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 81.25% and project coverage change: -0.03% :warning:

Comparison is base (d0cc84a) 86.53% compared to head (2d83e0d) 86.50%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #50 +/- ## ========================================== - Coverage 86.53% 86.50% -0.03% ========================================== Files 32 32 Lines 1574 1601 +27 Branches 112 113 +1 ========================================== + Hits 1362 1385 +23 - Misses 189 193 +4 Partials 23 23 ``` | [Files Changed](https://app.codecov.io/gh/uatuko/gatekeeper/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Uditha+Atukorala) | Coverage Δ | | |---|---|---| | [src/svc/access.cpp](https://app.codecov.io/gh/uatuko/gatekeeper/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Uditha+Atukorala#diff-c3JjL3N2Yy9hY2Nlc3MuY3Bw) | `83.07% <70.00%> (-1.35%)` | :arrow_down: | | [src/svc/permissions.cpp](https://app.codecov.io/gh/uatuko/gatekeeper/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Uditha+Atukorala#diff-c3JjL3N2Yy9wZXJtaXNzaW9ucy5jcHA=) | `90.00% <78.57%> (-10.00%)` | :arrow_down: | | [src/datastore/permissions.cpp](https://app.codecov.io/gh/uatuko/gatekeeper/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Uditha+Atukorala#diff-c3JjL2RhdGFzdG9yZS9wZXJtaXNzaW9ucy5jcHA=) | `91.48% <100.00%> (+1.24%)` | :arrow_up: | | [src/datastore/roles.cpp](https://app.codecov.io/gh/uatuko/gatekeeper/pull/50?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Uditha+Atukorala#diff-c3JjL2RhdGFzdG9yZS9yb2xlcy5jcHA=) | `79.36% <100.00%> (+3.17%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.