| 65 | } |
| 66 | |
| 67 | std::function<void ()> protectedFunc( std::function<void ()> unprotectedFunc ) |
| 68 | { |
| 69 | return [f = std::move( unprotectedFunc )] |
| 70 | { |
| 71 | auto maybeOk = protectedRun( f ); |
| 72 | if ( !maybeOk ) |
| 73 | spdlog::error( "protectedFunc error: {}", maybeOk.error() ); |
| 74 | }; |
| 75 | } |
| 76 | |
| 77 | } //namespace MR |
no test coverage detected