Skip to content

Commit ab92df5

Browse files
kassensfacebook-github-bot
authored andcommitted
use placeholder in connection warning
Reviewed By: tyao1 Differential Revision: D51354322 fbshipit-source-id: 6f687e2746837226303302584fc0756159aa9f89
1 parent 7312781 commit ab92df5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/relay-runtime/handlers/connection/MutationHandlers.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const DeleteEdgeHandler = {
6363
if (connection == null) {
6464
warning(
6565
false,
66-
`[Relay][Mutation] The connection with id '${connectionID}' doesn't exist.`,
66+
"[Relay] The connection with id `%s` doesn't exist.",
67+
connectionID,
6768
);
6869
continue;
6970
}
@@ -135,7 +136,8 @@ function edgeUpdater(
135136
if (connection == null) {
136137
warning(
137138
false,
138-
`[Relay][Mutation] The connection with id '${connectionID}' doesn't exist.`,
139+
"[Relay] The connection with id `%s` doesn't exist.",
140+
connectionID,
139141
);
140142
continue;
141143
}
@@ -205,7 +207,8 @@ function nodeUpdater(
205207
if (connection == null) {
206208
warning(
207209
false,
208-
`[Relay][Mutation] The connection with id '${connectionID}' doesn't exist.`,
210+
"[Relay] The connection with id `%s` doesn't exist.",
211+
connectionID,
209212
);
210213
continue;
211214
}

0 commit comments

Comments
 (0)