Skip to content

Commit

Permalink
Merge pull request ceph#37926 from BryceCao/wip-catch-non-int-exception
Browse files Browse the repository at this point in the history
rgw : catch non int exception
  • Loading branch information
harishmunjulur authored Dec 10, 2020
2 parents b32c6f1 + bfd20a5 commit 482599e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rgw/rgw_auth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,17 @@ rgw::auth::Strategy::apply(const DoutPrefixProvider *dpp, const rgw::auth::Strat
} catch (const int err) {
ldpp_dout(dpp, 5) << "applier throwed err=" << err << dendl;
return err;
} catch (const std::exception& e) {
ldpp_dout(dpp, 5) << "applier throwed unexpected err: " << e.what()
<< dendl;
return -EPERM;
}
} catch (const int err) {
ldpp_dout(dpp, 5) << "auth engine throwed err=" << err << dendl;
return err;
} catch (const std::exception& e) {
ldpp_dout(dpp, 5) << "auth engine throwed unexpected err: " << e.what()
<< dendl;
}

/* We never should be here. */
Expand Down

0 comments on commit 482599e

Please sign in to comment.