Skip to content

Commit 7cb1c30

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

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ 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 should actually catch
15+
throw error;
1516
});
1617

1718
mountLayoutWithWebSocket(

0 commit comments

Comments
 (0)