Skip to content

Commit 1007b8e

Browse files
sebmarkbageAndyPengc12
authored andcommitted
[Flight Reply] Update error message (facebook#27549)
This is in the reverse direction.
1 parent a154fe9 commit 1007b8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-client/src/ReactFlightReplyClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,22 +304,22 @@ export function processReply(
304304
);
305305
} else if (objectName(value) !== 'Object') {
306306
console.error(
307-
'Only plain objects can be passed to Client Components from Server Components. ' +
307+
'Only plain objects can be passed to Server Functions from the Client. ' +
308308
'%s objects are not supported.%s',
309309
objectName(value),
310310
describeObjectForErrorMessage(parent, key),
311311
);
312312
} else if (!isSimpleObject(value)) {
313313
console.error(
314-
'Only plain objects can be passed to Client Components from Server Components. ' +
314+
'Only plain objects can be passed to Server Functions from the Client. ' +
315315
'Classes or other objects with methods are not supported.%s',
316316
describeObjectForErrorMessage(parent, key),
317317
);
318318
} else if (Object.getOwnPropertySymbols) {
319319
const symbols = Object.getOwnPropertySymbols(value);
320320
if (symbols.length > 0) {
321321
console.error(
322-
'Only plain objects can be passed to Client Components from Server Components. ' +
322+
'Only plain objects can be passed to Server Functions from the Client. ' +
323323
'Objects with symbol properties like %s are not supported.%s',
324324
symbols[0].description,
325325
describeObjectForErrorMessage(parent, key),

0 commit comments

Comments
 (0)