Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3276364
D5026.id16455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
808 B
Referenced Files
None
Subscribers
None
D5026.id16455.diff
View Options
diff --git a/services/lib/src/server-base-reactors/ServerWriteReactorBase.h b/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
--- a/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
+++ b/services/lib/src/server-base-reactors/ServerWriteReactorBase.h
@@ -64,7 +64,7 @@
try {
this->terminateCallback();
this->validate();
- } catch (std::runtime_error &e) {
+ } catch (std::exception &e) {
this->statusHolder->setStatus(
grpc::Status(grpc::StatusCode::INTERNAL, e.what()));
}
@@ -103,7 +103,7 @@
return;
}
this->StartWrite(&this->response);
- } catch (std::runtime_error &e) {
+ } catch (std::exception &e) {
LOG(ERROR) << "error: " << e.what();
this->terminate(grpc::Status(grpc::StatusCode::INTERNAL, e.what()));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 7:27 AM (18 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2518137
Default Alt Text
D5026.id16455.diff (808 B)
Attached To
Mode
D5026: [services] Rust Integration - Catch std::exception in base write reactor
Attached
Detach File
Event Timeline
Log In to Comment