Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374811
D7086.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
8 KB
Referenced Files
None
Subscribers
None
D7086.diff
View Options
diff --git a/lib/shared/messages/add-members-message-spec.js b/lib/shared/messages/add-members-message-spec.js
--- a/lib/shared/messages/add-members-message-spec.js
+++ b/lib/shared/messages/add-members-message-spec.js
@@ -57,7 +57,7 @@
const content = clientDBMessageInfo.content;
invariant(
content !== undefined && content !== null,
- 'content must be defined',
+ 'content must be defined for AddMembers',
);
const rawAddMembersMessageInfo: RawAddMembersMessageInfo = {
type: messageTypes.ADD_MEMBERS,
diff --git a/lib/shared/messages/change-role-message-spec.js b/lib/shared/messages/change-role-message-spec.js
--- a/lib/shared/messages/change-role-message-spec.js
+++ b/lib/shared/messages/change-role-message-spec.js
@@ -67,7 +67,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for ChangeRole',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawChangeRoleMessageInfo: RawChangeRoleMessageInfo = {
diff --git a/lib/shared/messages/change-settings-message-spec.js b/lib/shared/messages/change-settings-message-spec.js
--- a/lib/shared/messages/change-settings-message-spec.js
+++ b/lib/shared/messages/change-settings-message-spec.js
@@ -60,7 +60,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for ChangeSettings',
);
const content = JSON.parse(clientDBMessageInfo.content);
const field = Object.keys(content)[0];
diff --git a/lib/shared/messages/create-entry-message-spec.js b/lib/shared/messages/create-entry-message-spec.js
--- a/lib/shared/messages/create-entry-message-spec.js
+++ b/lib/shared/messages/create-entry-message-spec.js
@@ -60,7 +60,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for CreateEntry',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawCreateEntryMessageInfo: RawCreateEntryMessageInfo = {
diff --git a/lib/shared/messages/create-sidebar-message-spec.js b/lib/shared/messages/create-sidebar-message-spec.js
--- a/lib/shared/messages/create-sidebar-message-spec.js
+++ b/lib/shared/messages/create-sidebar-message-spec.js
@@ -71,7 +71,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for CreateSidebar',
);
const { sourceMessageAuthorID, ...initialThreadState } = JSON.parse(
diff --git a/lib/shared/messages/create-sub-thread-message-spec.js b/lib/shared/messages/create-sub-thread-message-spec.js
--- a/lib/shared/messages/create-sub-thread-message-spec.js
+++ b/lib/shared/messages/create-sub-thread-message-spec.js
@@ -63,7 +63,7 @@
const content = clientDBMessageInfo.content;
invariant(
content !== undefined && content !== null,
- 'content must be defined',
+ 'content must be defined for CreateSubThread',
);
const rawCreateSubthreadMessageInfo: RawCreateSubthreadMessageInfo = {
type: messageTypes.CREATE_SUB_THREAD,
diff --git a/lib/shared/messages/create-thread-message-spec.js b/lib/shared/messages/create-thread-message-spec.js
--- a/lib/shared/messages/create-thread-message-spec.js
+++ b/lib/shared/messages/create-thread-message-spec.js
@@ -61,7 +61,7 @@
const content = clientDBMessageInfo.content;
invariant(
content !== undefined && content !== null,
- 'content must be defined',
+ 'content must be defined for CreateThread',
);
const rawCreateThreadMessageInfo: RawCreateThreadMessageInfo = {
type: messageTypes.CREATE_THREAD,
diff --git a/lib/shared/messages/delete-entry-message-spec.js b/lib/shared/messages/delete-entry-message-spec.js
--- a/lib/shared/messages/delete-entry-message-spec.js
+++ b/lib/shared/messages/delete-entry-message-spec.js
@@ -59,7 +59,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for DeleteEntry',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawDeleteEntryMessageInfo: RawDeleteEntryMessageInfo = {
diff --git a/lib/shared/messages/edit-entry-message-spec.js b/lib/shared/messages/edit-entry-message-spec.js
--- a/lib/shared/messages/edit-entry-message-spec.js
+++ b/lib/shared/messages/edit-entry-message-spec.js
@@ -60,7 +60,7 @@
invariant(
clientDBMessageInfo.content !== null &&
clientDBMessageInfo.content !== undefined,
- 'content must be defined',
+ 'content must be defined for EditEntry',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawEditEntryMessageInfo: RawEditEntryMessageInfo = {
diff --git a/lib/shared/messages/reaction-message-spec.js b/lib/shared/messages/reaction-message-spec.js
--- a/lib/shared/messages/reaction-message-spec.js
+++ b/lib/shared/messages/reaction-message-spec.js
@@ -91,7 +91,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for Reaction',
);
const content = JSON.parse(clientDBMessageInfo.content);
diff --git a/lib/shared/messages/remove-members-message-spec.js b/lib/shared/messages/remove-members-message-spec.js
--- a/lib/shared/messages/remove-members-message-spec.js
+++ b/lib/shared/messages/remove-members-message-spec.js
@@ -57,7 +57,7 @@
const content = clientDBMessageInfo.content;
invariant(
content !== undefined && content !== null,
- 'content must be defined',
+ 'content must be defined for RemoveMembers',
);
const rawRemoveMembersMessageInfo: RawRemoveMembersMessageInfo = {
type: messageTypes.REMOVE_MEMBERS,
diff --git a/lib/shared/messages/restore-entry-message-spec.js b/lib/shared/messages/restore-entry-message-spec.js
--- a/lib/shared/messages/restore-entry-message-spec.js
+++ b/lib/shared/messages/restore-entry-message-spec.js
@@ -59,7 +59,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for RestoreEntry',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawRestoreEntryMessageInfo: RawRestoreEntryMessageInfo = {
diff --git a/lib/shared/messages/sidebar-source-message-spec.js b/lib/shared/messages/sidebar-source-message-spec.js
--- a/lib/shared/messages/sidebar-source-message-spec.js
+++ b/lib/shared/messages/sidebar-source-message-spec.js
@@ -51,7 +51,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for SidebarSource',
);
const sourceMessage = JSON.parse(clientDBMessageInfo.content);
const rawSidebarSourceMessageInfo: RawSidebarSourceMessageInfo = {
diff --git a/lib/shared/messages/unsupported-message-spec.js b/lib/shared/messages/unsupported-message-spec.js
--- a/lib/shared/messages/unsupported-message-spec.js
+++ b/lib/shared/messages/unsupported-message-spec.js
@@ -33,7 +33,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for Unsupported',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawUnsupportedMessageInfo: RawUnsupportedMessageInfo = {
diff --git a/lib/shared/messages/update-relationship-message-spec.js b/lib/shared/messages/update-relationship-message-spec.js
--- a/lib/shared/messages/update-relationship-message-spec.js
+++ b/lib/shared/messages/update-relationship-message-spec.js
@@ -63,7 +63,7 @@
invariant(
clientDBMessageInfo.content !== undefined &&
clientDBMessageInfo.content !== null,
- 'content must be defined',
+ 'content must be defined for UpdateRelationship',
);
const content = JSON.parse(clientDBMessageInfo.content);
const rawUpdateRelationshipMessageInfo: RawUpdateRelationshipMessageInfo = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 5:11 PM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591103
Default Alt Text
D7086.diff (8 KB)
Attached To
Mode
D7086: [lib] Add message type to "content must be defined" errors
Attached
Detach File
Event Timeline
Log In to Comment