Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3246873
D5238.id17109.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
799 B
Referenced Files
None
Subscribers
None
D5238.id17109.diff
View Options
diff --git a/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/ThreadOperationsUtilities/ThreadOperations.cpp b/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/ThreadOperationsUtilities/ThreadOperations.cpp
--- a/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/ThreadOperationsUtilities/ThreadOperations.cpp
+++ b/native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/ThreadOperationsUtilities/ThreadOperations.cpp
@@ -12,8 +12,9 @@
std::unique_ptr<Thread> thread =
DatabaseManager::getQueryExecutor().getThread(threadID);
if (thread == nullptr) {
- throw std::runtime_error(
+ Logger::log(
"Attempted to update non-existing thread with ID: " + threadID);
+ return;
}
folly::dynamic updatedCurrentUser;
try {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 2:13 AM (20 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495895
Default Alt Text
D5238.id17109.diff (799 B)
Attached To
Mode
D5238: Replace throw with log and early return when trying to update thread that does exists in the database in response to rescind
Attached
Detach File
Event Timeline
Log In to Comment