Skip to content

Commit f2149f7

Browse files
committed
add comment about catch
1 parent 3ba0ef5 commit f2149f7

File tree

1 file changed

+4
-2
lines changed
  • src/client/packages/idom-client-react/src

1 file changed

+4
-2
lines changed

src/client/packages/idom-client-react/src/server.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ export function mountWithLayoutServer(
1010
const loadImportSource = (source, sourceType) =>
1111
import(
1212
sourceType == "NAME" ? serverInfo.path.module(source) : source
13-
).catch(() => {
14-
console.error("Import failed");
13+
).catch((error) => {
14+
// Added a catch to silence a build warning caller so we just re-throw.
15+
// The caller is actually responsible for catching this error.
16+
throw error;
1517
});
1618

1719
mountLayoutWithWebSocket(

0 commit comments

Comments
 (0)